Entity::access

public Entity::access($operation, AccountInterface $account = NULL, $return_as_object = FALSE) Checks data value access. Parameters string $operation: The operation to be performed. \Drupal\Core\Session\AccountInterface $account: (optional) The user for which to check access, or NULL to check access for the current user. Defaults to NULL. bool $return_as_object: (optional) Defaults to FALSE. Return value bool|\Drupal\Core\Access\AccessResultInterface The access result. Returns a boolean if $r

Entity::$typedData

A typed data object wrapping this entity. Type: \Drupal\Core\TypedData\ComplexDataInterface File core/lib/Drupal/Core/Entity/Entity.php, line 47 Class Entity Defines a base entity class. Namespace Drupal\Core\Entity Code protected $typedData;

Entity::$entityTypeId

The entity type. Type: string File core/lib/Drupal/Core/Entity/Entity.php, line 33 Class Entity Defines a base entity class. Namespace Drupal\Core\Entity Code protected $entityTypeId;

Entity::$enforceIsNew

Boolean indicating whether the entity should be forced to be new. Type: bool File core/lib/Drupal/Core/Entity/Entity.php, line 40 Class Entity Defines a base entity class. Namespace Drupal\Core\Entity Code protected $enforceIsNew;

entity.inc

Entity API for handling entities like nodes or users. File core/includes/entity.inc Functions Name Description entity_create Deprecated Constructs a new entity object, without permanently saving it. entity_delete_multiple Deprecated Deletes multiple entities permanently. entity_get_bundles Deprecated Returns the entity bundle info. entity_get_display Deprecated Returns the entity view display associated with a bundle and view mode. entity_get_form_display Deprecated Re

entity-moderation-form.html.twig

{{ attach_library('content_moderation/entity-moderation-form') }} <ul class="entity-moderation-form"> <li>{{ form.current }}</li> <li>{{ form.new_state }}</li> <li>{{ form.revision_log }}</li> <li>{{ form.submit }}</li> </ul> {{ form|without('current', 'new_state', 'revision_log', 'submit') }} File core/modules/content_moderation/templates/entity-moderation-form.html.twig

entity-add-list.html.twig

Default theme implementation to present a list of available bundles. Available variables: bundles: A list of bundles, each with the following properties: label: Bundle label. description: Bundle description. add_link: Link to create an entity of this bundle. add_bundle_message: The message shown when there are no bundles. Only available if the entity type uses bundle entities. See also template_preprocess_entity_add_list() File core/modules/system/templates/entity-add-list.html.twig

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

Entity API

Describes how to define and manipulate content and configuration entities. Entities, in Drupal, are objects that are used for persistent storage of content and configuration information. See the Information types topic for an overview of the different types of information, and the Configuration API topic for more about the configuration API. Each entity is an instance of a particular "entity type". Some content entity types have sub-types, which are known as "bundles", while for other entity ty

Entity

Defines a base entity class. Hierarchy class \Drupal\Core\Entity\Entity implements EntityInterface uses RefinableCacheableDependencyTrait, DependencySerializationTrait File core/lib/Drupal/Core/Entity/Entity.php, line 20 Namespace Drupal\Core\Entity Members Name Modifiers Type Description DependencySerializationTrait::$_serviceIds protected property An array of service IDs keyed by property name used for serialization. DependencySerializationTrait::__sleep public f