public function PanelizerUIAccess::access in Panelizer 8.4
Same name and namespace in other branches
- 8.5 src/Access/PanelizerUIAccess.php \Drupal\panelizer\Access\PanelizerUIAccess::access()
- 8.3 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();
}