You are here

public function IngredientDeleteForm::__construct in Recipe 8.2

Constructs a new IngredientDeleteForm object.

Parameters

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity manager.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle service.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

\Drupal\Core\Logger\LoggerChannelInterface $logger_channel: The logger service.

Overrides ContentEntityForm::__construct

File

modules/ingredient/src/Form/IngredientDeleteForm.php, line 38

Class

IngredientDeleteForm
Provides a form for deleting an ingredient.

Namespace

Drupal\ingredient\Form

Code

public function __construct(EntityRepositoryInterface $entity_repository, EntityTypeBundleInfoInterface $entity_type_bundle_info, TimeInterface $time, LoggerChannelInterface $logger_channel) {
  parent::__construct($entity_repository, $entity_type_bundle_info, $time);
  $this->loggerChannel = $logger_channel;
}