You are here

public function NameListFormattableMarkup::__toString in Name Field 8

Returns markup.

Return value

string The markup.

Overrides MarkupInterface::__toString

1 call to NameListFormattableMarkup::__toString()
NameListFormattableMarkup::jsonSerialize in src/Render/NameListFormattableMarkup.php

File

src/Render/NameListFormattableMarkup.php, line 41

Class

NameListFormattableMarkup
Formats a string for HTML display by replacing variable placeholders.

Namespace

Drupal\name\Render

Code

public function __toString() {
  return $this
    ->escapeValues($this->names);
}