You are here

public function PageManagerPluginAccess::access 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::access()

Overrides AccessInterface::access

File

page_manager_ui/src/Access/PageManagerPluginAccess.php, line 15
Contains \Drupal\page_manager_ui\Access\PageManagerPluginAccess.

Class

PageManagerPluginAccess

Namespace

Drupal\page_manager_ui\Access

Code

public function access(AccountInterface $account) {
  return $account
    ->hasPermission('administer pages') ? AccessResult::allowed() : AccessResult::forbidden();
}