PanelizerUIAccess.php in Panelizer 8.3
Same filename and directory in other branches
Namespace
Drupal\panelizer\AccessFile
src/Access/PanelizerUIAccess.phpView source
<?php
namespace Drupal\panelizer\Access;
use Drupal\Core\Access\AccessResult;
use Drupal\Core\Session\AccountInterface;
use Drupal\ctools\Access\AccessInterface;
/**
*
*/
class PanelizerUIAccess implements AccessInterface {
public function access(AccountInterface $account) {
return $account
->hasPermission('administer panelizer') ? AccessResult::allowed() : AccessResult::forbidden();
}
}
Classes
Name | Description |
---|---|
PanelizerUIAccess |