You are here

public function MenuSelection::setAllowedMenusService in Menu Admin per Menu 8

Set the allowed menu service.

Parameters

\Drupal\menu_admin_per_menu\Access\MenuAdminPerMenuAccess $allowed_menu_service: The allowed menu service.

Return value

$this The current class.

File

src/Plugin/EntityReferenceSelection/MenuSelection.php, line 48

Class

MenuSelection
Provides specific entity reference selection for the menu entity type.

Namespace

Drupal\menu_admin_per_menu\Plugin\EntityReferenceSelection

Code

public function setAllowedMenusService(MenuAdminPerMenuAccess $allowed_menu_service) : self {
  $this->allowedMenuService = $allowed_menu_service;
  return $this;
}