function TextHooks::fieldTypeCategoryInfoAlter
Same name and namespace in other branches
- main core/modules/text/src/Hook/TextHooks.php \Drupal\text\Hook\TextHooks::fieldTypeCategoryInfoAlter()
Implements hook_field_type_category_info_alter().
Attributes
#[Hook('field_type_category_info_alter')]
File
-
core/
modules/ text/ src/ Hook/ TextHooks.php, line 62
Class
- TextHooks
- Hook implementations for text.
Namespace
Drupal\text\HookCode
public function fieldTypeCategoryInfoAlter(&$definitions) : void {
// The static text in the YAML file cannot provide the proper link, so do
// that here.
$definitions['formatted_text']['summary'] = $this->t('Formatted text fields allow HTML markup. The field can be configured to allow one or more of the <a href="@text_formats">configured text formats</a>.', [
'@text_formats' => Url::fromRoute('filter.admin_overview')->toString(),
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.