Markup.php

Same filename in this branch
  1. 11.x core/modules/views/src/Plugin/views/field/Markup.php
Same filename in other branches
  1. 9 core/modules/views/src/Plugin/views/field/Markup.php
  2. 9 core/lib/Drupal/Core/Render/Markup.php
  3. 8.9.x core/modules/views/src/Plugin/views/field/Markup.php
  4. 8.9.x core/lib/Drupal/Core/Render/Markup.php
  5. 10 core/modules/views/src/Plugin/views/field/Markup.php
  6. 10 core/lib/Drupal/Core/Render/Markup.php

Namespace

Drupal\Core\Render

File

core/lib/Drupal/Core/Render/Markup.php

View source
<?php

namespace Drupal\Core\Render;

use Drupal\Component\Render\MarkupInterface;
use Drupal\Component\Render\MarkupTrait;

/**
 * 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.
 *
 * @see \Drupal\Core\Template\TwigExtension::escapeFilter
 * @see \Twig\Markup
 */
final class Markup implements MarkupInterface, \Countable {
    use MarkupTrait;

}

Classes

Title Deprecated Summary
Markup Defines an object that passes safe strings through the render system.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.