public function PanelizerUIAccess::access in Panelizer 8.5
Same name and namespace in other branches
- 8.3 src/Access/PanelizerUIAccess.php \Drupal\panelizer\Access\PanelizerUIAccess::access()
- 8.4 src/Access/PanelizerUIAccess.php \Drupal\panelizer\Access\PanelizerUIAccess::access()
Overrides AccessInterface::access
File
- src/
Access/ PanelizerUIAccess.php, line 14
Class
Namespace
Drupal\panelizer\AccessCode
public function access(AccountInterface $account) {
return $account
->hasPermission('administer panelizer') ? AccessResult::allowed() : AccessResult::forbidden();
}