FieldUiThemeHooks.php
Namespace
Drupal\field_ui\HookFile
-
core/
modules/ field_ui/ src/ Hook/ FieldUiThemeHooks.php
View source
<?php
namespace Drupal\field_ui\Hook;
use Drupal\Core\Hook\Attribute\Hook;
/**
* Hook implementations for field_ui.
*/
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;
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
FieldUiThemeHooks | Hook implementations for field_ui. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.