You are here

public function NameListFormat::listSettings in Name Field 8

Get the list settings.

Return value

array The settings with any custom processing completed.

Overrides NameListFormatInterface::listSettings

File

src/Entity/NameListFormat.php, line 154

Class

NameListFormat
Defines the Name List Format configuration entity class.

Namespace

Drupal\name\Entity

Code

public function listSettings() {
  $el_al_first = $this->el_al_first;
  if ($el_al_first > $this->el_al_min) {
    $el_al_first = $this->el_al_min;
  }
  return [
    'delimiter' => $this->delimiter,
    'and' => $this->and,
    'delimiter_precedes_last' => $this->delimiter_precedes_last,
    'el_al_min' => $this->el_al_min,
    'el_al_first' => $el_al_first,
  ];
}