You are here

public function NameFormatParser::getMarkupOptions in Name Field 8

Supported markup options.

Return value

array A keyed array of markup options.

File

src/NameFormatParser.php, line 535

Class

NameFormatParser
Converts a name from an array of components into a defined format.

Namespace

Drupal\name

Code

public function getMarkupOptions() {
  return [
    // Raw component values.
    'none' => $this
      ->t('No markup'),
    // Unescaped text.
    'raw' => $this
      ->t('Raw, unescaped text'),
    // Escaped component values.
    'simple' => $this
      ->t('Component classes'),
    // Escaped component values.
    'microdata' => $this
      ->t('Microdata itemprop components'),
    // Escaped component values.
    'rdfa' => $this
      ->t('RDFa property components'),
  ];
}