public function CRMCoreAccess::__construct in CRM Core 8.2
Same name and namespace in other branches
- 8.3 src/Access/CRMCoreAccess.php \Drupal\crm_core\Access\CRMCoreAccess::__construct()
- 8 src/Access/CRMCoreAccess.php \Drupal\crm_core\Access\CRMCoreAccess::__construct()
CRMCoreAccess constructor.
Parameters
\Drupal\Core\Menu\MenuLinkTreeInterface $menu_tree: The menu link tree manager.
\Drupal\Core\Access\AccessManagerInterface $access_manager: The access manager.
File
- src/
Access/ CRMCoreAccess.php, line 43
Class
- CRMCoreAccess
- Check access for crm_core.
Namespace
Drupal\crm_core\AccessCode
public function __construct(MenuLinkTreeInterface $menu_tree, AccessManagerInterface $access_manager) {
$this->menuTree = $menu_tree;
$this->accessManager = $access_manager;
}