You are here

public static function FieldFilteredMarkup::displayAllowedTags in Drupal 8

Same name and namespace in other branches
  1. 9 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.

7 calls to FieldFilteredMarkup::displayAllowedTags()
AllowedTagsXssTrait::displayAllowedTags in core/lib/Drupal/Core/Field/AllowedTagsXssTrait.php
Returns a human-readable list of allowed tags for display in help texts.
AllowedTagsXssTraitDeprecateTest::testDeprecation in core/tests/Drupal/Tests/Core/Field/AllowedTagsXssTraitDeprecateTest.php
@expectedDeprecation Drupal\Core\Field\AllowedTagsXssTrait::fieldFilterXss is deprecated in drupal:8.0.0 and is removed in drupal:9.0.0. Use \Drupal\Core\Field\FieldFilteredMarkup::create() instead. @expectedDeprecation…
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.

... See full list

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()) . '>';
}