public function PanelizerInterface::hasDefaultPermission in Panelizer 8.5
Same name and namespace in other branches
- 8.3 src/PanelizerInterface.php \Drupal\panelizer\PanelizerInterface::hasDefaultPermission()
- 8.4 src/PanelizerInterface.php \Drupal\panelizer\PanelizerInterface::hasDefaultPermission()
Checks if a user has permission to perform an operation on a default.
Parameters
string $op: The operation. Possible values include:
- "change content"
string $entity_type_id: The entity type id.
string $bundle: The bundle.
string $view_mode: The view mode.
string $default: The name of the default.
\Drupal\Core\Session\AccountInterface|NULL $account: (optional) The user account to check; or the current user if omitted.
Return value
bool TRUE if the user has permission; FALSE otherwise.
1 method overrides PanelizerInterface::hasDefaultPermission()
- Panelizer::hasDefaultPermission in src/
Panelizer.php - Checks if a user has permission to perform an operation on a default.
File
- src/
PanelizerInterface.php, line 241
Class
- PanelizerInterface
- Interface for the Panelizer service.
Namespace
Drupal\panelizerCode
public function hasDefaultPermission($op, $entity_type_id, $bundle, $view_mode, $default, AccountInterface $account = NULL);