Defines an object that passes safe strings through the Field system.
This object filters the string using a very restrictive tag list when it is created.
@internal This object is marked as internal because it should only be used by the Field module and field-related plugins.
Hierarchy
- class \Drupal\Core\Field\FieldFilteredMarkup implements \Countable, MarkupInterface uses MarkupTrait
See also
File
- core/lib/Drupal/Core/Field/FieldFilteredMarkup.php, line 22
Namespace
Drupal\Core\Field
Members
Name | Modifiers | Type | Description |
---|---|---|---|
FieldFilteredMarkup::allowedTags | public static | function | Returns the allowed tag list. |
FieldFilteredMarkup::create | public static | function | Overrides \Drupal\Component\Render\MarkupTrait::create(). Overrides MarkupTrait::create |
FieldFilteredMarkup::displayAllowedTags | public static | function | Returns a human-readable list of allowed tags for display in help texts. |
MarkupTrait::$string | protected | property | The safe string. |
MarkupTrait::count | public | function | Returns the string length. |
MarkupTrait::jsonSerialize | public | function | Returns a representation of the object for use in JSON serialization. |
MarkupTrait::__toString | public | function | Returns the string version of the Markup object. Overrides MarkupInterface::__toString |
Please login to continue.