You are here

public function EntityMenuLinkCloneForm::__construct in Menu Link Clone 8.3

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

Constructs a clone menu lines with parent construct.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match service.

\Drupal\Core\StringTranslation\TranslationManager $string_translation: The string translation manager.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher: The event dispatcher service.

\Drupal\Core\Messenger\Messenger $messenger: The messenger service.

\Drupal\Component\Uuid\Php $uuid_interface: Generate unique id(uuid).

Overrides EntityCloneForm::__construct

File

src/Form/EntityMenuLinkCloneForm.php, line 62

Class

EntityMenuLinkCloneForm
Provides a menu link clone form.

Namespace

Drupal\menu_link_clone\Form

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, RouteMatchInterface $route_match, TranslationManager $string_translation, EventDispatcherInterface $eventDispatcher, Messenger $messenger, Php $uuid_interface) {
  parent::__construct($entity_type_manager, $route_match, $string_translation, $eventDispatcher, $messenger);
  $this->uuidinterface = $uuid_interface;
}