autocomplete_extras-1.0.0/autocomplete_extras.module

autocomplete_extras.module
<?php

/**
 * @file
 * Legacy hook implementations for autocomplete_extras module.
 */

use Drupal\autocomplete_extras\Hook\AutocompleteExtrasHooks;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Hook\Attribute\LegacyHook;

/**
 * Implements hook_field_widget_complete_form_alter().
 */
#[LegacyHook]
function autocomplete_extras_field_widget_complete_form_alter(array &$field_widget_complete_form, FormStateInterface $form_state, $context): void {
  \Drupal::service(AutocompleteExtrasHooks::class)->fieldWidgetCompleteFormAlter($field_widget_complete_form, $form_state, $context);
}

/**
 * Implements hook_field_widget_third_party_settings_form().
 */
#[LegacyHook]
function autocomplete_extras_field_widget_third_party_settings_form($plugin, $field_definition, $form_mode, array &$form, FormStateInterface $form_state): array {
  return \Drupal::service(AutocompleteExtrasHooks::class)->fieldWidgetThirdPartySettingsForm($plugin, $field_definition, $form_mode, $form, $form_state);
}

/**
 * Implements hook_field_widget_settings_summary_alter().
 */
#[LegacyHook]
function autocomplete_extras_field_widget_settings_summary_alter(&$summary, $context): void {
  \Drupal::service(AutocompleteExtrasHooks::class)->fieldWidgetSettingsSummaryAlter($summary, $context);
}

/**
 * Implements hook_form_FORM_ID_alter() for menu_link_content_menu_link_content_form.
 */
#[LegacyHook]
function autocomplete_extras_form_menu_link_content_menu_link_content_form_alter(&$form, FormStateInterface $form_state): void {
  \Drupal::service(AutocompleteExtrasHooks::class)->formMenuLinkContentMenuLinkContentFormAlter($form, $form_state);
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc