public function PageManagerPluginAccess::access in Page Manager 8
Same name and namespace in other branches
- 8.4 page_manager_ui/src/Access/PageManagerPluginAccess.php \Drupal\page_manager_ui\Access\PageManagerPluginAccess::access()
Overrides AccessInterface::access
File
- page_manager_ui/
src/ Access/ PageManagerPluginAccess.php, line 15 - Contains \Drupal\page_manager_ui\Access\PageManagerPluginAccess.
Class
Namespace
Drupal\page_manager_ui\AccessCode
public function access(AccountInterface $account) {
return $account
->hasPermission('administer pages') ? AccessResult::allowed() : AccessResult::forbidden();
}