You are here

public function MenuDeleteItem::__construct in Menu Delete 8.2

Same name and namespace in other branches
  1. 8 src/Form/MenuDeleteItem.php \Drupal\menu_delete\Form\MenuDeleteItem::__construct()

Constructs a MenuDeleteItem form object.

Parameters

EntityRepositoryInterface $entity_repository: The entity repository.

PrivateTempStoreFactory $temp_store_factory: The tempstore factory.

File

src/Form/MenuDeleteItem.php, line 54

Class

MenuDeleteItem
Class MenuDeleteItem.

Namespace

Drupal\menu_delete\Form

Code

public function __construct(EntityRepositoryInterface $entity_repository, PrivateTempStoreFactory $temp_store_factory) {
  $this->entityRepository = $entity_repository;
  $this->tempStoreFactory = $temp_store_factory;
}