You are here

final class FilteredMarkup in Devel 8

Same name and namespace in other branches
  1. 8.3 src/Render/FilteredMarkup.php \Drupal\devel\Render\FilteredMarkup
  2. 8.2 src/Render/FilteredMarkup.php \Drupal\devel\Render\FilteredMarkup
  3. 4.x src/Render/FilteredMarkup.php \Drupal\devel\Render\FilteredMarkup

Defines an object that passes safe strings through the Devel system.

This object should only be constructed with a known safe string. If there is any risk that the string contains user-entered data that has not been filtered first, it must not be used.

@internal This object is marked as internal because it should only be used in the Devel module.

Hierarchy

Expanded class hierarchy of FilteredMarkup

See also

\Drupal\Core\Render\Markup

1 file declares its use of FilteredMarkup
DevelDumperBase.php in src/DevelDumperBase.php

File

src/Render/FilteredMarkup.php, line 20

Namespace

Drupal\devel\Render
View source
final class FilteredMarkup implements MarkupInterface, \Countable {
  use MarkupTrait;

}

Members

Namesort descending Modifiers Type Description Overrides
MarkupTrait::$string protected property The safe string.
MarkupTrait::count public function Returns the string length.
MarkupTrait::create public static function Creates a Markup object if necessary. 2
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.