function DevelDumperBase::setSafeMarkup

Same name in other branches
  1. 8.x-1.x src/DevelDumperBase.php \Drupal\devel\DevelDumperBase::setSafeMarkup()
  2. 4.x src/DevelDumperBase.php \Drupal\devel\DevelDumperBase::setSafeMarkup()

Wrapper for \Drupal\Core\Render\Markup::create().

Parameters

mixed $input: The input to mark as a safe string.

Return value

\Drupal\Component\Render\MarkupInterface|string The unaltered input value.

6 calls to DevelDumperBase::setSafeMarkup()
AvailableTestDumper::export in tests/modules/devel_dumper_test/src/Plugin/Devel/Dumper/AvailableTestDumper.php
Returns a string representation of a variable.
AvailableTestDumper::exportAsRenderable in tests/modules/devel_dumper_test/src/Plugin/Devel/Dumper/AvailableTestDumper.php
Returns a string representation of a variable wrapped in a render array.
DoctrineDebug::export in src/Plugin/Devel/Dumper/DoctrineDebug.php
Returns a string representation of a variable.
Kint::export in src/Plugin/Devel/Dumper/Kint.php
Returns a string representation of a variable.
NotAvailableTestDumper::export in tests/modules/devel_dumper_test/src/Plugin/Devel/Dumper/NotAvailableTestDumper.php
Returns a string representation of a variable.

... See full list

File

src/DevelDumperBase.php, line 43

Class

DevelDumperBase
Defines a base devel dumper implementation.

Namespace

Drupal\devel

Code

protected function setSafeMarkup(mixed $input) : MarkupInterface|string {
    return FilteredMarkup::create($input);
}