final class FilteredMarkup in Devel 8
Same name and namespace in other branches
- 8.3 src/Render/FilteredMarkup.php \Drupal\devel\Render\FilteredMarkup
- 8.2 src/Render/FilteredMarkup.php \Drupal\devel\Render\FilteredMarkup
- 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
- class \Drupal\devel\Render\FilteredMarkup implements \Drupal\devel\Render\Countable, MarkupInterface uses MarkupTrait
Expanded class hierarchy of FilteredMarkup
See also
1 file declares its use of FilteredMarkup
File
- src/
Render/ FilteredMarkup.php, line 20
Namespace
Drupal\devel\RenderView source
final class FilteredMarkup implements MarkupInterface, \Countable {
use MarkupTrait;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MarkupTrait:: |
protected | property | The safe string. | |
MarkupTrait:: |
public | function | Returns the string length. | |
MarkupTrait:: |
public static | function | Creates a Markup object if necessary. | 2 |
MarkupTrait:: |
public | function | Returns a representation of the object for use in JSON serialization. | |
MarkupTrait:: |
public | function | Returns the string version of the Markup object. |