You are here

public function CacheflushEntityForm::__construct in CacheFlush 8

Constructs a ContentEntityForm object.

Parameters

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository service.

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

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

Overrides ContentEntityForm::__construct

File

modules/cacheflush_ui/src/Entity/Form/CacheflushEntityForm.php, line 31

Class

CacheflushEntityForm
Form controller for Cacheflush entity edit forms.

Namespace

Drupal\cacheflush_ui\Entity\Form

Code

public function __construct(EntityRepositoryInterface $entity_repository, CacheflushApi $cacheflush, EntityTypeBundleInfoInterface $entity_type_bundle_info = NULL, TimeInterface $time = NULL) {
  parent::__construct($entity_repository, $entity_type_bundle_info, $time);
  $this->cacheflush = $cacheflush;
}