public function NameListFormatListBuilder::__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\NameFormatterInterface $formatter: The name formatter.
\Drupal\name\NameFormatParser $parser: The name format parser.
\Drupal\name\NameGeneratorInterface $generator: The name generator service.
Overrides EntityListBuilder::__construct
File
- src/
NameListFormatListBuilder.php, line 66
Class
- NameListFormatListBuilder
- The name list builder.
Namespace
Drupal\nameCode
public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, NameFormatterInterface $formatter, NameFormatParser $parser, NameGeneratorInterface $generator) {
parent::__construct($entity_type, $storage);
$this->parser = $parser;
$this->formatter = $formatter;
$this->generator = $generator;
}