function template_preprocess_field_ui_table
Same name and namespace in other branches
- 10 core/modules/field_ui/field_ui.module \template_preprocess_field_ui_table()
- 9 core/modules/field_ui/field_ui.module \template_preprocess_field_ui_table()
- 8.9.x core/modules/field_ui/field_ui.module \template_preprocess_field_ui_table()
Prepares variables for field UI overview table templates.
Default template: field-ui-table.html.twig.
Parameters
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 also
https://www.drupal.org/node/3533060
File
-
core/
modules/ field_ui/ field_ui.module, line 26
Code
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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.