EntityAccessControlHandler::checkFieldAccess

protected EntityAccessControlHandler::checkFieldAccess($operation, FieldDefinitionInterface $field_definition, AccountInterface $account, FieldItemListInterface $items = NULL) Default field access as determined by this access control handler. Parameters string $operation: The operation access should be checked for. Usually one of "view" or "edit". \Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition. \Drupal\Core\Session\AccountInterface $account: The user sessio

EntityAccessControlHandler::checkCreateAccess

protected EntityAccessControlHandler::checkCreateAccess(AccountInterface $account, array $context, $entity_bundle = NULL) Performs create access checks. This method is supposed to be overwritten by extending classes that do their own custom access checking. Parameters \Drupal\Core\Session\AccountInterface $account: The user for which to check access. array $context: An array of key-value pairs to pass additional context when needed. string|null $entity_bundle: (optional) The bundle of the enti

EntityAccessControlHandler::checkAccess

protected EntityAccessControlHandler::checkAccess(EntityInterface $entity, $operation, AccountInterface $account) Performs access checks. This method is supposed to be overwritten by extending classes that do their own custom access checking. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for which to check access. string $operation: The entity operation. Usually one of 'view', 'view label', 'update' or 'delete'. \Drupal\Core\Session\AccountInterface $account: The user for

EntityAccessControlHandler::access

public EntityAccessControlHandler::access(EntityInterface $entity, $operation, AccountInterface $account = NULL, $return_as_object = FALSE) Checks access to an operation on a given entity or entity translation. Use \Drupal\Core\Entity\EntityAccessControlHandlerInterface::createAccess() to check access to create an entity. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for which to check access. string $operation: The operation access should be checked for. Usually one of "v

EntityAccessControlHandler::$viewLabelOperation

Allows to grant access to just the labels. By default, the "view label" operation falls back to "view". Set this to TRUE to allow returning different access when just listing entity labels. Type: bool File core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php, line 45 Class EntityAccessControlHandler Defines a default implementation for entity access control handler. Namespace Drupal\Core\Entity Code protected $viewLabelOperation = FALSE;

EntityAccessControlHandler::$entityTypeId

The entity type ID of the access control handler instance. Type: string File core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php, line 28 Class EntityAccessControlHandler Defines a default implementation for entity access control handler. Namespace Drupal\Core\Entity Code protected $entityTypeId;

EntityAccessControlHandler::$entityType

Information about the entity type. Type: \Drupal\Core\Entity\EntityTypeInterface File core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php, line 35 Class EntityAccessControlHandler Defines a default implementation for entity access control handler. Namespace Drupal\Core\Entity Code protected $entityType;

EntityAccessControlHandler::$accessCache

Stores calculated access check results. Type: array File core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php, line 21 Class EntityAccessControlHandler Defines a default implementation for entity access control handler. Namespace Drupal\Core\Entity Code protected $accessCache = array();

EntityAccessControlHandler

Defines a default implementation for entity access control handler. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityAccessControlHandler implements EntityAccessControlHandlerInterface File core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php, line 14 Namespace Drupal\Core\Entity Members Name Modifiers Type Description DependencySerializationTrait::$_serviceIds protected pr

Entity::__sleep

public Entity::__sleep() File core/lib/Drupal/Core/Entity/Entity.php, line 605 Class Entity Defines a base entity class. Namespace Drupal\Core\Entity Code public function __sleep() { $this->typedData = NULL; return $this->traitSleep(); }