class JsonMarkup in JSON Field 8
Provides a markup render plugin that supports JSON.
@package Drupal\json_field
Hierarchy
- class \Drupal\json_field\JsonMarkup implements MarkupInterface uses MarkupTrait
Expanded class hierarchy of JsonMarkup
1 file declares its use of JsonMarkup
- JSONText.php in src/
Element/ JSONText.php
File
- src/
JsonMarkup.php, line 13
Namespace
Drupal\json_fieldView source
class JsonMarkup implements MarkupInterface {
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. |