class PageManagerPluginAccess 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
Hierarchy
- class \Drupal\page_manager_ui\Access\PageManagerPluginAccess implements AccessInterface
Expanded class hierarchy of PageManagerPluginAccess
2 files declare their use of PageManagerPluginAccess
- PageVariantAddWizard.php in page_manager_ui/
src/ Wizard/ PageVariantAddWizard.php - Contains \Drupal\page_manager_ui\Wizard\PageVariantAddWizard.
- PageWizardBase.php in page_manager_ui/
src/ Wizard/ PageWizardBase.php - Contains \Drupal\page_manager_ui\Wizard\PageWizardBase.
File
- page_manager_ui/
src/ Access/ PageManagerPluginAccess.php, line 13 - Contains \Drupal\page_manager_ui\Access\PageManagerPluginAccess.
Namespace
Drupal\page_manager_ui\AccessView source
class PageManagerPluginAccess implements AccessInterface {
public function access(AccountInterface $account) {
return $account
->hasPermission('administer pages') ? AccessResult::allowed() : AccessResult::forbidden();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PageManagerPluginAccess:: |
public | function |
Overrides AccessInterface:: |