You are here

public function MicrositeMenuItemForm::__construct in Entity Reference Hierarchy 8.2

Same name and namespace in other branches
  1. 3.x modules/entity_hierarchy_microsite/src/Form/MicrositeMenuItemForm.php \Drupal\entity_hierarchy_microsite\Form\MicrositeMenuItemForm::__construct()

Constructs a MenuLinkContentForm object.

Parameters

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

\Drupal\Core\Menu\MenuParentFormSelectorInterface $menu_parent_selector: The menu parent form selector service.

\Drupal\Core\Path\PathValidatorInterface $path_validator: The path validator.

\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/entity_hierarchy_microsite/src/Form/MicrositeMenuItemForm.php, line 55

Class

MicrositeMenuItemForm
Defines a class for menu link for microsite items.

Namespace

Drupal\entity_hierarchy_microsite\Form

Code

public function __construct(EntityRepositoryInterface $entity_repository, MenuParentFormSelectorInterface $menu_parent_selector, PathValidatorInterface $path_validator, EntityTypeBundleInfoInterface $entity_type_bundle_info, TimeInterface $time) {
  parent::__construct($entity_repository, $entity_type_bundle_info, $time);
  $this->menuParentSelector = $menu_parent_selector;
  $this->pathValidator = $path_validator;
}