You are here

PageManagerPluginAccess.php in Page Manager 8.4

Same filename and directory in other branches
  1. 8 page_manager_ui/src/Access/PageManagerPluginAccess.php

File

page_manager_ui/src/Access/PageManagerPluginAccess.php
View source
<?php

namespace Drupal\page_manager_ui\Access;

use Drupal\Core\Access\AccessResult;
use Drupal\Core\Session\AccountInterface;
use Drupal\ctools\Access\AccessInterface;
class PageManagerPluginAccess implements AccessInterface {
  public function access(AccountInterface $account) {
    return $account
      ->hasPermission('administer pages') ? AccessResult::allowed() : AccessResult::forbidden();
  }

}

Classes