Functions - 8.9.x - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
entity_crud_hook_test_node_update core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_update() for node entities.
entity_crud_hook_test_taxonomy_term_create core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_create() for taxonomy_term entities.
entity_crud_hook_test_taxonomy_term_delete core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_delete() for taxonomy_term entities.
entity_crud_hook_test_taxonomy_term_insert core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_insert() for taxonomy_term entities.
entity_crud_hook_test_taxonomy_term_load core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_load() for taxonomy_term entities.
entity_crud_hook_test_taxonomy_term_predelete core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_predelete() for taxonomy_term entities.
entity_crud_hook_test_taxonomy_term_presave core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_presave() for taxonomy_term entities.
entity_crud_hook_test_taxonomy_term_update core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_update() for taxonomy_term entities.
entity_crud_hook_test_taxonomy_vocabulary_create core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_create() for taxonomy_vocabulary entities.
entity_crud_hook_test_taxonomy_vocabulary_delete core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_delete() for taxonomy_vocabulary entities.
entity_crud_hook_test_taxonomy_vocabulary_insert core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_insert() for taxonomy_vocabulary entities.
entity_crud_hook_test_taxonomy_vocabulary_load core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_load() for taxonomy_vocabulary entities.
entity_crud_hook_test_taxonomy_vocabulary_predelete core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_predelete() for taxonomy_vocabulary entities.
entity_crud_hook_test_taxonomy_vocabulary_presave core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_presave() for taxonomy_vocabulary entities.
entity_crud_hook_test_taxonomy_vocabulary_update core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_update() for taxonomy_vocabulary entities.
entity_crud_hook_test_user_create core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_create() for user entities.
entity_crud_hook_test_user_delete core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_delete() for user entities.
entity_crud_hook_test_user_insert core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_insert() for user entities.
entity_crud_hook_test_user_load core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_load() for user entities.
entity_crud_hook_test_user_predelete core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_predelete() for user entities.
entity_crud_hook_test_user_presave core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_presave() for user entities.
entity_crud_hook_test_user_update core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_update() for user entities.
entity_delete_multiple

in drupal:8.0.0 and is removed from drupal:9.0.0. Use the entity storage's \Drupal\Core\Entity\EntityStorageInterface::delete() method to delete multiple entities:

$storage_handler = \Drupal::entityTypeManager()->getStorage($entity_type);
$entities = $storage_handler->loadMultiple($ids);
$storage_handler->delete($entities);
core/includes/entity.inc Deletes multiple entities permanently. 2
entity_get_bundles

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityTypeBundleInfoInterface::getBundleInfo() for a single bundle, or \Drupal\Core\Entity\EntityTypeBundleInfoInterface::getAllBundleInfo() for all bundles.

core/includes/entity.inc Returns the entity bundle info. 1
entity_get_display

in drupal:8.8.0 and is removed from drupal:9.0.0. Use EntityDisplayRepositoryInterface::getViewDisplay() instead.

core/includes/entity.inc Returns the entity view display associated with a bundle and view mode. 1
entity_get_form_display

in drupal:8.8.0 and is removed from drupal:9.0.0. Use EntityDisplayRepositoryInterface::getFormDisplay() instead.

core/includes/entity.inc Returns the entity form display associated with a bundle and form mode. 1
entity_load

in drupal:8.0.0 and is removed from drupal:9.0.0. Use the entity type storage's load() method.

core/includes/entity.inc Loads an entity from the database. 1 1
entity_load_multiple

in drupal:8.0.0 and is removed from drupal:9.0.0. Use the entity type storage's loadMultiple() method.

core/includes/entity.inc Loads multiple entities from the database. 1
entity_load_multiple_by_properties

in drupal:8.0.0 and is removed from drupal:9.0.0. Use the entity type storage's loadByProperties() method.

core/includes/entity.inc Load entities by their property values. 1
entity_load_unchanged

in drupal:8.0.0 and is removed from drupal:9.0.0. Use the entity type storage's loadUnchanged() method.

core/includes/entity.inc Loads the unchanged, i.e. not modified, entity from the database. 1
entity_page_label

in drupal:8.0.0 and is removed from drupal:9.0.0. Use the entity's label() method.

core/includes/entity.inc Returns the label of an entity. 1
entity_reference_test_entity_base_field_info core/modules/system/tests/modules/entity_reference_test/entity_reference_test.module Implements hook_entity_base_field_info().
entity_reference_test_entity_base_field_info_alter core/modules/system/tests/modules/entity_reference_test/entity_reference_test.module Implements hook_entity_base_field_info_alter().
entity_render_cache_clear

in drupal:8.7.0 and is removed from drupal:9.0.0. Instead, use \Drupal\Core\Entity\EntityViewBuilderInterface::resetCache() on the required entity types or invalidate specific cache tags.

core/includes/entity.inc Clears the entity render cache for all entity types.
entity_revision_delete

in drupal:8.0.0 and is removed from drupal:9.0.0. Use the entity type storage's deleteRevision() method.

core/includes/entity.inc Deletes an entity revision. 1
entity_revision_load

in drupal:8.0.0 and is removed from drupal:9.0.0. Use the entity type storage's loadRevision() method.

core/includes/entity.inc Loads an entity from the database. 1
entity_schema_test_entity_base_field_info core/modules/system/tests/modules/entity_schema_test/entity_schema_test.module Implements hook_entity_base_field_info().
entity_schema_test_entity_bundle_create core/modules/system/tests/modules/entity_schema_test/entity_schema_test.module Implements hook_entity_bundle_create().
entity_schema_test_entity_bundle_delete core/modules/system/tests/modules/entity_schema_test/entity_schema_test.module Implements hook_entity_bundle_delete().
entity_schema_test_entity_bundle_field_info core/modules/system/tests/modules/entity_schema_test/entity_schema_test.module Implements hook_entity_bundle_field_info().
entity_schema_test_entity_field_storage_info core/modules/system/tests/modules/entity_schema_test/entity_schema_test.module Implements hook_entity_field_storage_info().
entity_schema_test_entity_type_alter core/modules/system/tests/modules/entity_schema_test/entity_schema_test.module Implements hook_entity_type_alter().
entity_serialization_test_entity_field_access_alter core/modules/serialization/tests/modules/entity_serialization_test/entity_serialization_test.module Implements hook_entity_field_access_alter().
entity_test_constraints_entity_type_alter core/modules/system/tests/modules/entity_test_constraints/entity_test_constraints.module Implements hook_entity_type_alter().
entity_test_constraints_entity_type_build core/modules/system/tests/modules/entity_test_constraints/entity_test_constraints.module Implements hook_entity_type_build().
entity_test_create_bundle core/modules/system/tests/modules/entity_test/entity_test.module Creates a new bundle for entity_test entities. 41
entity_test_delete_bundle core/modules/system/tests/modules/entity_test/entity_test.module Deletes a bundle for entity_test entities. 5
entity_test_entity_access core/modules/system/tests/modules/entity_test/entity_test.module Implements hook_entity_access(). 1
entity_test_entity_base_field_info core/modules/system/tests/modules/entity_test/entity_test.module Implements hook_entity_base_field_info().
entity_test_entity_base_field_info_alter core/modules/system/tests/modules/entity_test/entity_test.module Implements hook_entity_base_field_info_alter().

Other projects


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.