You are here

public function IngredientListBuilder::__construct in Recipe 8.2

Constructs a new NodeListBuilder object.

Parameters

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

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

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager service.

Overrides EntityListBuilder::__construct

File

modules/ingredient/src/IngredientListBuilder.php, line 44

Class

IngredientListBuilder
Provides a list controller for ingredient.

Namespace

Drupal\ingredient

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, DateFormatterInterface $date_formatter, LanguageManagerInterface $language_manager) {
  parent::__construct($entity_type, $storage);
  $this->dateFormatter = $date_formatter;
  $this->languageManager = $language_manager;
}