You are here

public function NameListFormattableMarkup::__construct in Name Field 8

Constructor for NameListFormattableMarkup.

File

src/Render/NameListFormattableMarkup.php, line 33

Class

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

Namespace

Drupal\name\Render

Code

public function __construct(array $names = [], $separator = ', ') {
  $this->names = $names;
  $this->separator = $this
    ->escapeValues($separator);
}