You are here

function template_preprocess_field_gutenberg_text in Gutenberg 8.2

Prepares variables for Gutenberg text field templates.

Default template: field-gutenberg-text.html.twig.

Parameters

array $variables: An associative array containing:

  • element: A render element representing the field.
  • attributes: A string containing the attributes for the wrapping div.
  • title_attributes: A string containing the attributes for the title.

File

./gutenberg.theme.inc, line 19
Theme related functions and hooks for the Gutenberg module.

Code

function template_preprocess_field_gutenberg_text(array &$variables, $hook) {

  // Run through the default field preprocess hook.
  template_preprocess_field($variables, $hook);
}