final class Markup in Zircon Profile 8
Same name in this branch
- 8 core/lib/Drupal/Core/Render/Markup.php \Drupal\Core\Render\Markup
- 8 core/modules/views/src/Plugin/views/field/Markup.php \Drupal\views\Plugin\views\field\Markup
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Render/Markup.php \Drupal\Core\Render\Markup
Defines an object that passes safe strings through the render 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 whilst rendering.
Hierarchy
- class \Drupal\Core\Render\Markup implements \Drupal\Core\Render\Countable, MarkupInterface uses MarkupTrait
Expanded class hierarchy of Markup
See also
\Drupal\Core\Template\TwigExtension::escapeFilter
\Drupal\Component\Utility\SafeMarkup
22 files declare their use of Markup
- AssertHelperTraitTest.php in core/
modules/ simpletest/ tests/ src/ Unit/ AssertHelperTraitTest.php - Contains \Drupal\Tests\simpletest\Unit\AssertHelperTraitTest.
- AttributeTest.php in core/
tests/ Drupal/ Tests/ Core/ Template/ AttributeTest.php - Contains \Drupal\Tests\Core\Template\AttributeTest.
- bootstrap.inc in core/
includes/ bootstrap.inc - Functions that need to be loaded on every Drupal request.
- common.inc in core/
includes/ common.inc - Common functions that many Drupal modules will need to reference.
- ConfigTest.php in core/
tests/ Drupal/ Tests/ Core/ Config/ ConfigTest.php - Contains \Drupal\Tests\Core\Config\ConfigTest.
2 string references to 'Markup'
- TestAjaxRenderer::drupalRenderRoot in core/
tests/ Drupal/ Tests/ Core/ Controller/ AjaxRendererTest.php - Wraps drupal_render_root().
- views.field.schema.yml in core/
modules/ views/ config/ schema/ views.field.schema.yml - core/modules/views/config/schema/views.field.schema.yml
File
- core/
lib/ Drupal/ Core/ Render/ Markup.php, line 28 - Contains \Drupal\Core\Render\Markup.
Namespace
Drupal\Core\RenderView source
final class Markup 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. |