PageManagerPluginAccess.php in Page Manager 8.4
Same filename and directory in other branches
Namespace
Drupal\page_manager_ui\AccessFile
page_manager_ui/src/Access/PageManagerPluginAccess.phpView 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
Name![]() |
Description |
---|---|
PageManagerPluginAccess |