Entity CRUD, editing, and view hooks

Hooks used in various entity operations. Entity create, read, update, and delete (CRUD) operations are performed by entity storage classes; see the Entity API topic for more information. Most entities use or extend the default classes: \Drupal\Core\Entity\Sql\SqlContentEntityStorage for content entities, and \Drupal\Core\Config\Entity\ConfigEntityStorage for configuration entities. For these entities, there is a set of hooks that is invoked for each CRUD operation, which module developers can i

FieldConfigStorageBase

Base storage class for field config entities. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityStorageBase implements EntityHandlerInterface, EntityStorageInterfaceclass \Drupal\Core\Config\Entity\ConfigEntityStorage implements ConfigEntityStorageInterface, ImportableEntityStorageInterfaceclass \Drupal\Core\Field\FieldConfigStorageBase File core/lib/Drupal/Core/Field/FieldConfigStorageBase.php, l

PrivateKey::get

public PrivateKey::get() Gets the private key. Return value string The private key. File core/lib/Drupal/Core/PrivateKey.php, line 36 Class PrivateKey Manages the Drupal private key. Namespace Drupal\Core Code public function get() { if (!$key = $this->state->get('system.private_key')) { $key = $this->create(); $this->set($key); } return $key; }

VocabularyResetForm

Provides confirmation form for resetting a vocabulary to alphabetical order. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\Core\Entity\EntityConfirmFormBase implements ConfirmFormInterfaceclass \Drupal\taxonomy\Form\Vocabular

RedirectResponseSubscriber::checkRedirectUrl

public RedirectResponseSubscriber::checkRedirectUrl(FilterResponseEvent $event) Allows manipulation of the response object when performing a redirect. Parameters \Symfony\Component\HttpKernel\Event\FilterResponseEvent $event: The Event to process. File core/lib/Drupal/Core/EventSubscriber/RedirectResponseSubscriber.php, line 48 Class RedirectResponseSubscriber Allows manipulation of the response object when performing a redirect. Namespace Drupal\Core\EventSubscriber Code public funct

CacheBackendInterface::get

public CacheBackendInterface::get($cid, $allow_invalid = FALSE) Returns data from the persistent cache. Parameters string $cid: The cache ID of the data to retrieve. bool $allow_invalid: (optional) If TRUE, a cache item may be returned even if it is expired or has been invalidated. Such items may sometimes be preferred, if the alternative is recalculating the value stored in the cache, especially if another concurrent request is already recalculating the same value. The "valid" property of the

MessageInterface::getPersonalRecipient

public MessageInterface::getPersonalRecipient() Returns the user this message is being sent to. Return value \Drupal\user\UserInterface The user entity of the recipient, NULL if this is not a personal message. File core/modules/contact/src/MessageInterface.php, line 114 Class MessageInterface Provides an interface defining a contact message entity. Namespace Drupal\contact Code public function getPersonalRecipient();

utility.inc

Miscellaneous functions. File core/includes/utility.inc Functions Name Description drupal_rebuild Rebuilds all caches even when Drupal itself does not work.

JsCollectionOptimizer::$dumper

An asset dumper. Type: \Drupal\Core\Asset\AssetDumper File core/lib/Drupal/Core/Asset/JsCollectionOptimizer.php, line 32 Class JsCollectionOptimizer Optimizes JavaScript assets. Namespace Drupal\Core\Asset Code protected $dumper;

MenuLinkContentInterface

Defines an interface for custom menu links. Hierarchy interface \Drupal\Core\Entity\ContentEntityInterface extends \Traversable; interface \Drupal\Core\Entity\EntityChangedInterfaceinterface \Drupal\menu_link_content\MenuLinkContentInterface File core/modules/menu_link_content/src/MenuLinkContentInterface.php, line 11 Namespace Drupal\menu_link_content Members Name Modifiers Type Description AccessibleInterface::access public function Checks data value access. Cacheab