Functions - 8.9.x - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
entity_test_load

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal::entityTypeManager()->getStorage('entity_test')->load().

core/modules/system/tests/modules/entity_test/entity_test.module Loads a test entity.
entity_test_mulrev_load

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal::entityTypeManager()->getStorage('entity_test_mulrev_load')->load().

core/modules/system/tests/modules/entity_test/entity_test.module Loads a test entity.
entity_test_mul_load

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal::entityTypeManager()->getStorage('entity_test_mul')->load().

core/modules/system/tests/modules/entity_test/entity_test.module Loads a test entity.
entity_test_operation_entity_operation core/modules/system/tests/modules/entity_test_operation/entity_test_operation.module Implements hook_entity_operation().
entity_test_query_entity_test_access_alter core/modules/system/tests/modules/entity_test/entity_test.module Implements hook_query_entity_test_access_alter().
entity_test_revlog_update_8801 core/modules/system/tests/modules/entity_test_revlog/entity_test_revlog.install Install the 'entity_test_mul_revlog_pub' entity type.
entity_test_rev_load

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal::entityTypeManager()->getStorage('entity_test_rev')->load().

core/modules/system/tests/modules/entity_test/entity_test.module Loads a test entity.
entity_test_schema core/modules/system/tests/modules/entity_test/entity_test.install Implements hook_schema().
entity_test_schema_converter_post_update_make_revisionable core/modules/system/tests/modules/entity_test_schema_converter/entity_test_schema_converter.post_update.php Update entity_test_update to be revisionable.
entity_test_update_8001 core/modules/system/tests/modules/entity_test/update/entity_definition_updates_8001.inc Makes the 'user_id' field multiple and migrate its data.
entity_test_update_8001 core/modules/system/tests/modules/entity_test/update/status_report_8001.inc Test update.
entity_test_update_8002 core/modules/system/tests/modules/entity_test/update/status_report_8002.inc Test update.
entity_test_update_8002 core/modules/system/tests/modules/entity_test/update/entity_definition_updates_8002.inc Makes the 'user_id' field single and migrate its data.
entity_test_update_entity_base_field_info core/modules/system/tests/modules/entity_test_update/entity_test_update.module Implements hook_entity_base_field_info().
entity_test_update_entity_field_storage_info core/modules/system/tests/modules/entity_test_update/entity_test_update.module Implements hook_entity_field_storage_info().
entity_test_update_entity_type_alter core/modules/system/tests/modules/entity_test_update/entity_test_update.module Implements hook_entity_type_alter().
entity_test_update_update_8400 core/modules/system/tests/modules/entity_test_update/update/entity_rev_pub_updates_8400.inc Add the 'published' entity key to entity_test_update.
entity_test_update_view_presave core/modules/system/tests/modules/entity_test_update/entity_test_update.module Implements hook_ENTITY_TYPE_presave() for the 'view' entity type.
entity_test_views_data_alter core/modules/system/tests/modules/entity_test/entity_test.views.inc Implements hook_views_data_alter().
entity_view

in drupal:8.0.0 and is removed from drupal:9.0.0. Use the entity view builder's view() method for creating a render array:

$view_builder = \Drupal::entityTypeManager()->getViewBuilder($entity->getEntityTypeId());
return $view_builder->view($entity, $view_mode, $langcode);
core/includes/entity.inc Returns the render array for an entity. 1 10
entity_view_multiple

in drupal:8.0.0 and is removed from drupal:9.0.0. Use the entity view builder's viewMultiple() method for creating a render array for the provided entities:

$view_builder = \Drupal::entityTypeManager()->getViewBuilder($entity->getEntityTypeId());
return $view_builder->viewMultiple($entities, $view_mode, $langcode);
core/includes/entity.inc Returns the render array for the provided entities. 1
error_displayable core/includes/errors.inc Determines whether an error should be displayed. 5
experimental_module_requirements_test_help core/modules/system/tests/modules/experimental_module_requirements_test/experimental_module_requirements_test.module Implements hook_help().
experimental_module_requirements_test_requirements core/modules/system/tests/modules/experimental_module_requirements_test/experimental_module_requirements_test.install Implements hook_requirements(). 1
experimental_module_test_help core/modules/system/tests/modules/experimental_module_test/experimental_module_test.module Implements hook_help().
field_config_import_steps_alter core/modules/field/field.module Implements hook_config_import_steps_alter().
field_cron core/modules/field/field.module Implements hook_cron().
field_entity_bundle_delete core/modules/field/field.module Implements hook_entity_bundle_delete().
field_entity_bundle_field_info core/modules/field/field.module Implements hook_entity_bundle_field_info().
field_entity_field_storage_info core/modules/field/field.module Implements hook_entity_field_storage_info().
field_field_config_insert core/modules/field/field.module Implements hook_ENTITY_TYPE_insert() for 'field_config'.
field_field_config_presave core/modules/field/field.module Implements hook_ENTITY_TYPE_presave() for 'field_config'.
field_field_storage_config_update core/modules/field/field.module Implements hook_ENTITY_TYPE_update() for 'field_storage_config'.
field_form_config_admin_import_form_alter core/modules/field/field.module Implements hook_form_FORM_ID_alter().
field_help core/modules/field/field.module Implements hook_help().
field_layout_entity_type_alter core/modules/field_layout/field_layout.module Implements hook_entity_type_alter().
field_layout_entity_view_alter core/modules/field_layout/field_layout.module Implements hook_entity_view_alter().
field_layout_form_alter core/modules/field_layout/field_layout.module Implements hook_form_alter().
field_layout_help core/modules/field_layout/field_layout.module Implements hook_help().
field_layout_install core/modules/field_layout/field_layout.install Implements hook_install().
field_layout_test_layout_alter core/modules/field_layout/tests/modules/field_layout_test/field_layout_test.module Implements hook_layout_alter().
field_layout_uninstall core/modules/field_layout/field_layout.install Implements hook_uninstall().
field_post_update_email_widget_size_setting core/modules/field/field.post_update.php Adds the 'size' setting for email widgets.
field_post_update_entity_reference_handler_setting core/modules/field/field.post_update.php Fixes the 'handler' setting for entity reference fields. 1
field_post_update_remove_handler_submit_setting core/modules/field/field.post_update.php Remove the stale 'handler_submit' setting for entity_reference fields.
field_post_update_save_custom_storage_property core/modules/field/field.post_update.php Re-save all field storage config objects to add 'custom_storage' property. 1
field_purge_batch core/modules/field/field.purge.inc Purges a batch of deleted Field API data, field storages, or fields. 15
field_purge_field core/modules/field/field.purge.inc Purges a field record from the database. 1
field_purge_field_storage core/modules/field/field.purge.inc Purges a field record from the database. 1
field_test_boolean_access_denied_entity_field_access core/modules/field/tests/modules/field_test_boolean_access_denied/field_test_boolean_access_denied.module Implements hook_entity_field_access().

Other projects


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