You are here

public static function FieldFilteredMarkup::displayAllowedTags in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Field/FieldFilteredMarkup.php \Drupal\Core\Field\FieldFilteredMarkup::displayAllowedTags()

Returns a human-readable list of allowed tags for display in help texts.

Return value

string A human-readable list of allowed tags for display in help texts.

5 calls to FieldFilteredMarkup::displayAllowedTags()
FieldConfigEditForm::form in core/modules/field_ui/src/Form/FieldConfigEditForm.php
Gets the actual form array to be built.
FieldFilteredMarkupTest::testdisplayAllowedTags in core/tests/Drupal/Tests/Core/Field/FieldFilteredMarkupTest.php
@covers: ::displayAllowedTags
ListFloatItem::allowedValuesDescription in core/modules/options/src/Plugin/Field/FieldType/ListFloatItem.php
Provides the field type specific allowed values form element #description.
ListIntegerItem::allowedValuesDescription in core/modules/options/src/Plugin/Field/FieldType/ListIntegerItem.php
Provides the field type specific allowed values form element #description.
ListStringItem::allowedValuesDescription in core/modules/options/src/Plugin/Field/FieldType/ListStringItem.php
Provides the field type specific allowed values form element #description.

File

core/lib/Drupal/Core/Field/FieldFilteredMarkup.php, line 68

Class

FieldFilteredMarkup
Defines an object that passes safe strings through the Field system.

Namespace

Drupal\Core\Field

Code

public static function displayAllowedTags() {
  return '<' . implode('> <', static::allowedTags()) . '>';
}