You are here

public function NameFormatListBuilder::__construct in Name Field 8

Constructs a new EntityListBuilder object.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage class.

\Drupal\name\NameFormatParser $parser: The name format parser.

\Drupal\name\NameGeneratorInterface $generator: The name generator.

Overrides EntityListBuilder::__construct

File

src/NameFormatListBuilder.php, line 63

Class

NameFormatListBuilder
Name format list builder for the admin page.

Namespace

Drupal\name

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, NameFormatParser $parser, NameGeneratorInterface $generator) {
  parent::__construct($entity_type, $storage);
  $this->parser = $parser;
  $this->generator = $generator;
}