EntityAccessControlHandlerInterface::access

public EntityAccessControlHandlerInterface::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

SqlContentEntityStorageSchema::onFieldStorageDefinitionCreate

public SqlContentEntityStorageSchema::onFieldStorageDefinitionCreate(FieldStorageDefinitionInterface $storage_definition) Reacts to the creation of a field storage definition. Parameters \Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The definition being created. Overrides FieldStorageDefinitionListenerInterface::onFieldStorageDefinitionCreate File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php, line 385 Class SqlContentEntityStorageSchema Defin

EntityManager::getFormModes

public EntityManager::getFormModes($entity_type_id) Overrides EntityDisplayRepositoryInterface::getFormModes Deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. File core/lib/Drupal/Core/Entity/EntityManager.php, line 304 Class EntityManager Provides a wrapper around many other services relating to entities. Namespace Drupal\Core\Entity Code public function getFormModes($entity_type_id) { return $this->container->get('entity_display.repository')->getFormModes

QueueWorkerBase

Provides a base implementation for a QueueWorker plugin. Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Queue\QueueWorkerBase implements QueueWorkerInterface See also \Drupal\Core\Queue\QueueWorkerInterface \Drupal\Core\Queue\QueueWorkerManager \Drupal\Core\Annotation\QueueWorker Plugin API File core/lib/Drupal/Core/Queue/QueueWorkerBase.php, line 15 Namespace Drupal\Core\Queue Members Name

PermissionsHashGenerator::$static

The cache backend interface to use for the static cache. Type: \Drupal\Core\Cache\CacheBackendInterface File core/lib/Drupal/Core/Session/PermissionsHashGenerator.php, line 34 Class PermissionsHashGenerator Generates and caches the permissions hash for a user. Namespace Drupal\Core\Session Code protected $static;

FormStateInterface::setValidationEnforced

public FormStateInterface::setValidationEnforced($must_validate = TRUE) Enforces that validation is run. Parameters bool $must_validate: If TRUE, validation will always be run. Return value $this File core/lib/Drupal/Core/Form/FormStateInterface.php, line 801 Class FormStateInterface Provides an interface for an object containing the current state of a form. Namespace Drupal\Core\Form Code public function setValidationEnforced($must_validate = TRUE);

StorageInterface::write

public StorageInterface::write($name, array $data) Writes configuration data to the storage. Parameters string $name: The name of a configuration object to save. array $data: The configuration data to write. Return value bool TRUE on success, FALSE in case of an error. Throws \Drupal\Core\Config\StorageException If the back-end storage does not exist and cannot be created. File core/lib/Drupal/Core/Config/StorageInterface.php, line 67 Class StorageInterface Defines an interface for conf

UserStorage::deleteRoleReferences

public UserStorage::deleteRoleReferences(array $rids) Delete role references. Parameters array $rids: The list of role IDs being deleted. The storage should remove permission and user references to this role. Overrides UserStorageInterface::deleteRoleReferences File core/modules/user/src/UserStorage.php, line 67 Class UserStorage Controller class for users. Namespace Drupal\user Code public function deleteRoleReferences(array $rids) { // Remove the role from all users. $this->d

hook_entity_field_access

hook_entity_field_access($operation, \Drupal\Core\Field\FieldDefinitionInterface $field_definition, \Drupal\Core\Session\AccountInterface $account, \Drupal\Core\Field\FieldItemListInterface $items = NULL) Control access to fields. This hook is invoked from \Drupal\Core\Entity\EntityAccessControlHandler::fieldAccess() to let modules grant or deny operations on fields. Parameters string $operation: The operation to be performed. See \Drupal\Core\Entity\EntityAccessControlHandlerInterface::fieldA

SystemCompactLink::preRenderCompactLink

public static SystemCompactLink::preRenderCompactLink($element) Pre-render callback: Renders a link into #markup. Doing so during pre_render gives modules a chance to alter the link parts. Parameters array $element: A structured array whose keys form the arguments to Drupal::l(): #title: The link text to pass as argument to Drupal::l(). One of the following: #route_name and (optionally) a #route_parameters array; The route name and route parameters which will be passed into the link generator