class Markup
Same name in this branch
- 9 core/modules/views/src/Plugin/views/field/Markup.php \Drupal\views\Plugin\views\field\Markup
Same name in other branches
- 8.9.x core/modules/views/src/Plugin/views/field/Markup.php \Drupal\views\Plugin\views\field\Markup
- 8.9.x core/lib/Drupal/Core/Render/Markup.php \Drupal\Core\Render\Markup
- 10 core/modules/views/src/Plugin/views/field/Markup.php \Drupal\views\Plugin\views\field\Markup
- 10 core/lib/Drupal/Core/Render/Markup.php \Drupal\Core\Render\Markup
- 11.x core/modules/views/src/Plugin/views/field/Markup.php \Drupal\views\Plugin\views\field\Markup
- 11.x 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\Component\Render\MarkupInterface, \Drupal\Core\Render\Countable uses \Drupal\Component\Render\MarkupTrait
Expanded class hierarchy of Markup
See also
\Drupal\Core\Template\TwigExtension::escapeFilter
\Twig\Markup
30 files declare their use of Markup
- AssertHelperTraitTest.php in core/
tests/ Drupal/ Tests/ AssertHelperTraitTest.php - AttributeTest.php in core/
tests/ Drupal/ Tests/ Core/ Template/ AttributeTest.php - ConfigTest.php in core/
tests/ Drupal/ Tests/ Core/ Config/ ConfigTest.php - EngineTwigTest.php in core/
modules/ system/ tests/ src/ Functional/ Theme/ EngineTwigTest.php - errors.inc in core/
includes/ errors.inc - Functions for error handling.
3 string references to 'Markup'
- AjaxRendererTest::setUp in core/
tests/ Drupal/ Tests/ Core/ Controller/ AjaxRendererTest.php - DrupalMessengerServiceTest::testStatusMessageAssertions in core/
modules/ system/ tests/ src/ Functional/ Bootstrap/ DrupalMessengerServiceTest.php - Tests assertion methods in WebAssert related to status messages.
- 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 22
Namespace
Drupal\Core\RenderView source
final class Markup implements MarkupInterface, \Countable {
use MarkupTrait;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.