class FieldUiThemeHooks

Hook implementations for field_ui.

Hierarchy

Expanded class hierarchy of FieldUiThemeHooks

File

core/modules/field_ui/src/Hook/FieldUiThemeHooks.php, line 10

Namespace

Drupal\field_ui\Hook
View source
class FieldUiThemeHooks {
  
  /**
   * Implements hook_preprocess_HOOK().
   */
  public function preprocessFormElementNewStorageType(&$variables) : void {
    // Add support for a variant string so radios in the add field form can be
    // programmatically distinguished.
    $variables['variant'] = $variables['element']['#variant'] ?? NULL;
  }

}

Members

Title Sort descending Modifiers Object type Summary
FieldUiThemeHooks::preprocessFormElementNewStorageType public function Implements hook_preprocess_HOOK().

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