You are here

public static function FieldFilteredMarkup::displayAllowedTags in Zircon Profile 8

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

3 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.
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

File

core/lib/Drupal/Core/Field/FieldFilteredMarkup.php, line 73
Contains \Drupal\Core\Field\FieldFilteredMarkup.

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