You are here

public function NameFormatterInterface::formatList in Name Field 8

Formats a list of author information.

Parameters

array $items: A nested array of name components to format.

string $type: (optional) The name format type to load. If the format does not exist, the 'default' format is used. Defaults to 'default'.

string $list_type: (optional) The list format type to load. If the format does not exist, the 'default' format is used. Defaults to 'default'.

string|null $langcode: (optional) Language code to translate to. NULL (default) means to use the user interface language for the page.

Return value

\Drupal\Component\Render\MarkupInterface The processed name in a MarkupInterface object.

1 method overrides NameFormatterInterface::formatList()
NameFormatter::formatList in src/NameFormatter.php
Formats a list of author information.

File

src/NameFormatterInterface.php, line 59

Class

NameFormatterInterface
Provides an interface defining a name formatter.

Namespace

Drupal\name

Code

public function formatList(array $items, $type = 'default', $list_type = 'default', $langcode = NULL);