field_ui.module

Same filename and directory in other branches
  1. 11.x core/modules/field_ui/field_ui.module
  2. 10 core/modules/field_ui/field_ui.module
  3. 9 core/modules/field_ui/field_ui.module
  4. 8.9.x core/modules/field_ui/field_ui.module
  5. 7.x modules/field_ui/field_ui.module

File

core/modules/field_ui/field_ui.module

View source
<?php


/**
 * @file
 */

use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Theme\ThemePreprocess;
use Drupal\field_ui\Hook\FieldUiHooks;

/**
 * Prepares variables for field UI overview table templates.
 *
 * Default template: field-ui-table.html.twig.
 *
 * @param array $variables
 *   An associative array containing:
 *   - elements: An associative array containing a Form API structure to be
 *     rendered as a table.
 *
 * @deprecated in drupal:11.3.0 and is removed from drupal:12.0.0. Initial
 *   template_preprocess functions are registered directly in hook_theme().
 *
 * @see https://www.drupal.org/node/3533060
 */
function template_preprocess_field_ui_table(&$variables) : void {
  @trigger_error(__FUNCTION__ . ' is deprecated in drupal:11.3.0 and is removed from drupal:12.0.0. Initial template_preprocess functions are registered directly in hook_theme(). See https://www.drupal.org/node/3533060', E_USER_DEPRECATED);
  \Drupal::service(ThemePreprocess::class)->preprocessTable($variables);
}

/**
 * Form submission handler for the 'Save and manage fields' button.
 *
 * @deprecated in drupal:11.4.0 and is removed from drupal:12.0.0. Use
 *   \Drupal\field_ui\Hook\FieldUiHooks::manageFieldFormSubmit()
 *   instead.
 *
 * @see https://www.drupal.org/node/3566774
 */
function field_ui_form_manage_field_form_submit($form, FormStateInterface $form_state) : void {
  @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:12.0.0. Use \\Drupal\\field_ui\\Hook\\FieldUiHooks::manageFieldFormSubmit() instead. See https://www.drupal.org/node/3566774', E_USER_DEPRECATED);
  \Drupal::service(FieldUiHooks::class)->manageFieldFormSubmit($form, $form_state);
}

Functions

Title Deprecated Summary
field_ui_form_manage_field_form_submit

in drupal:11.4.0 and is removed from drupal:12.0.0. Use \Drupal\field_ui\Hook\FieldUiHooks::manageFieldFormSubmit() instead.

Form submission handler for the 'Save and manage fields' button.
template_preprocess_field_ui_table

in drupal:11.3.0 and is removed from drupal:12.0.0. Initial template_preprocess functions are registered directly in hook_theme().

Prepares variables for field UI overview table templates.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.