Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Markup.php

class Markup

Same name in this branch
  1. 11.1.x vendor/twig/twig/src/Markup.php \Twig\Markup
  2. 11.1.x core/modules/views/src/Plugin/views/field/Markup.php \Drupal\views\Plugin\views\field\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

15 files declare their use of Markup
ConfigFormBase.php in core/lib/Drupal/Core/Form/ConfigFormBase.php
errors.inc in core/includes/errors.inc
Functions for error handling.
HtmlTag.php in core/lib/Drupal/Core/Render/Element/HtmlTag.php
MailManager.php in core/lib/Drupal/Core/Mail/MailManager.php
Messenger.php in core/lib/Drupal/Core/Messenger/Messenger.php

... See full list

1 string reference to 'Markup'
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\Render
View source
final class Markup implements MarkupInterface, \Countable {
    use MarkupTrait;

}
RSS feed
Powered by Drupal