You are here

class PageManagerPluginAccess in Page Manager 8

Same name and namespace in other branches
  1. 8.4 page_manager_ui/src/Access/PageManagerPluginAccess.php \Drupal\page_manager_ui\Access\PageManagerPluginAccess

Hierarchy

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\Access
View source
class PageManagerPluginAccess implements AccessInterface {
  public function access(AccountInterface $account) {
    return $account
      ->hasPermission('administer pages') ? AccessResult::allowed() : AccessResult::forbidden();
  }

}

Members