You are here

public function OgMenuInstanceForm::__construct in Organic Groups Menu (OG Menu) 8

Constructs an OgMenuInstanceForm.

Parameters

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

\Drupal\Core\Menu\MenuLinkManagerInterface $menu_link_manager: The menu link manager.

\Drupal\Core\Menu\MenuLinkTreeInterface $menu_tree: The menu tree service.

\Drupal\Core\Utility\LinkGeneratorInterface $link_generator: The link generator.

\Drupal\og\OgAccessInterface $og_access: The OG Access service.

\Drupal\Core\Routing\UrlGeneratorInterface $url_generator: The URL generator.

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

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

Overrides ContentEntityForm::__construct

File

src/Form/OgMenuInstanceForm.php, line 102

Class

OgMenuInstanceForm
Form controller for OG Menu instance edit forms.

Namespace

Drupal\og_menu\Form

Code

public function __construct(EntityRepositoryInterface $entity_repository, MenuLinkManagerInterface $menu_link_manager, MenuLinkTreeInterface $menu_tree, LinkGeneratorInterface $link_generator, OgAccessInterface $og_access, UrlGeneratorInterface $url_generator, ?EntityTypeBundleInfoInterface $entity_type_bundle_info = NULL, ?TimeInterface $time = NULL) {
  parent::__construct($entity_repository, $entity_type_bundle_info, $time);
  $this->menuLinkManager = $menu_link_manager;
  $this->menuTree = $menu_tree;
  $this->linkGenerator = $link_generator;
  $this->ogAccess = $og_access;
  $this->urlGenerator = $url_generator;
}