You are here

final class VueMarkup in Decoupled Blocks: Vue.js 8

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.

Hierarchy

Expanded class hierarchy of VueMarkup

See also

\Drupal\Core\Template\TwigExtension::escapeFilter

\Twig_Markup

\Drupal\Component\Utility\SafeMarkup

1 file declares its use of VueMarkup
VueBlock.php in src/Plugin/Block/VueBlock.php

File

src/Render/VueMarkup.php, line 19

Namespace

Drupal\pdb_vue\Render
View source
final class VueMarkup implements MarkupInterface, \Countable {
  use MarkupTrait;

}

Members

Namesort descending Modifiers Type Description Overrides
MarkupTrait::$string protected property The safe string.
MarkupTrait::count public function Returns the string length.
MarkupTrait::create public static function Creates a Markup object if necessary. 2
MarkupTrait::jsonSerialize public function Returns a representation of the object for use in JSON serialization.
MarkupTrait::__toString public function Returns the string version of the Markup object.