You are here

public function MenuDeleteItem::__construct in Menu Delete 8

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

Constructs a MenuDeleteItem form object.

Parameters

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.

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(EntityManagerInterface $entity_manager, PrivateTempStoreFactory $temp_store_factory) {
  $this->entityManager = $entity_manager;
  $this->tempStoreFactory = $temp_store_factory;
}