Search for preSave

  1. Search 7.x for preSave
  2. Search 9.5.x for preSave
  3. Search 10.3.x for preSave
  4. Search 11.x for preSave
  5. Other projects
Title Object type File name Summary
AutoIncrementingTestItem::preSave function core/modules/system/tests/modules/entity_test/src/Plugin/Field/FieldType/AutoIncrementingTestItem.php Defines custom presave behavior for field values.
BaseFieldOverride::preSave function core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php
Block::preSave function core/modules/block/src/Entity/Block.php Acts on an entity before the presave hook is invoked.
BlockContent::preSaveRevision function core/modules/block_content/src/Entity/BlockContent.php Acts on a revision before it gets saved.
block_content_test_block_content_presave function core/modules/block_content/tests/modules/block_content_test/block_content_test.module Implements hook_block_content_presave().
book_node_presave function core/modules/book/book.module Implements hook_ENTITY_TYPE_presave() for node entities.
ChangedItem::preSave function core/lib/Drupal/Core/Field/Plugin/Field/FieldType/ChangedItem.php Defines custom presave behavior for field values.
ChangedTestItem::preSave function core/modules/system/tests/modules/entity_test/src/Plugin/Field/FieldType/ChangedTestItem.php Defines custom presave behavior for field values.
Comment::preSave function core/modules/comment/src/Entity/Comment.php Acts on an entity before the presave hook is invoked.
comment_entity_view_display_presave function core/modules/comment/comment.module Implements hook_ENTITY_TYPE_presave() for entity_view_display entities.
ConfigEntityBase::preSave function core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php Acts on an entity before the presave hook is invoked.
ConfigEntityBaseUnitTest::testPreSaveDuringSync function core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php @covers ::preSave
ConfigEntityBundleBase::preSave function core/lib/Drupal/Core/Config/Entity/ConfigEntityBundleBase.php Acts on an entity before the presave hook is invoked.
ConfigurableLanguage::$preSaveMultilingual property core/modules/language/src/Entity/ConfigurableLanguage.php Used during saving to detect when the site becomes multilingual.
ConfigurableLanguage::preSave function core/modules/language/src/Entity/ConfigurableLanguage.php Acts on an entity before the presave hook is invoked.
config_test_config_test_presave function core/modules/config/tests/config_test/config_test.hooks.inc Implements hook_config_test_presave().
ContentEntityBase::preSave function core/lib/Drupal/Core/Entity/ContentEntityBase.php Acts on an entity before the presave hook is invoked.
ContentEntityBase::preSaveRevision function core/lib/Drupal/Core/Entity/ContentEntityBase.php
ContentEntityBaseUnitTest::testPreSaveRevision function core/tests/Drupal/Tests/Core/Entity/ContentEntityBaseUnitTest.php @covers ::preSaveRevision
ContentEntityStorageBase::doPreSave function core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php Performs presave entity processing.
ContentLanguageSettings::preSave function core/modules/language/src/Entity/ContentLanguageSettings.php Acts on an entity before the presave hook is invoked.
content_moderation_entity_presave function core/modules/content_moderation/content_moderation.module Implements hook_entity_presave().
content_translation_entity_presave function core/modules/content_translation/content_translation.module Implements hook_entity_presave().
datetime_range_view_presave function core/modules/datetime_range/datetime_range.module Implements hook_ENTITY_TYPE_presave().
dblog_view_presave function core/modules/dblog/dblog.module Implements hook_ENTITY_TYPE_presave() for views entities.
DecimalItem::preSave function core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DecimalItem.php Defines custom presave behavior for field values.
editor_filter_format_presave function core/modules/editor/editor.module Implements hook_ENTITY_TYPE_presave().
editor_test_file_presave function core/modules/editor/tests/modules/editor_test.module Implements hook_ENTITY_TYPE_presave() for file entities.
EntityBase::preSave function core/lib/Drupal/Core/Entity/EntityBase.php Acts on an entity before the presave hook is invoked.
EntityDisplayBase::preSave function core/lib/Drupal/Core/Entity/EntityDisplayBase.php Acts on an entity before the presave hook is invoked.
EntityDisplayBaseTest::testPreSave function core/tests/Drupal/KernelTests/Core/Entity/EntityDisplayBaseTest.php @covers ::preSave
EntityDisplayModeBase::preSave function core/lib/Drupal/Core/Entity/EntityDisplayModeBase.php Acts on an entity before the presave hook is invoked.
EntityInterface::preSave function core/lib/Drupal/Core/Entity/EntityInterface.php Acts on an entity before the presave hook is invoked.
EntityOperations::entityPresave function core/modules/workspaces/src/EntityOperations.php Acts on an entity before it is created or updated.
EntityOperations::entityPresave function core/modules/content_moderation/src/EntityOperations.php Acts on an entity and set published status based on the moderation state.
EntityReferenceItem::preSave function core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php Defines custom presave behavior for field values.
EntityStorageBase::doPreSave function core/lib/Drupal/Core/Entity/EntityStorageBase.php Performs presave entity processing.
EntityUnitTest::testPreSave function core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php @covers ::preSave
entity_crud_hook_test_block_presave function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_presave() for block entities.
entity_crud_hook_test_comment_presave function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_presave() for comment entities.
entity_crud_hook_test_entity_presave function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_entity_presave().
entity_crud_hook_test_file_presave function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_presave() for file entities.
entity_crud_hook_test_node_presave function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_presave() for node entities.
entity_crud_hook_test_taxonomy_term_presave function 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_vocabulary_presave function 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_user_presave function core/modules/system/tests/modules/entity_crud_hook_test/entity_crud_hook_test.module Implements hook_ENTITY_TYPE_presave() for user entities.
entity_test_entity_presave function core/modules/system/tests/modules/entity_test/entity_test.module Implements hook_entity_presave().
entity_test_update_view_presave function core/modules/system/tests/modules/entity_test_update/entity_test_update.module Implements hook_ENTITY_TYPE_presave() for the 'view' entity type.
FieldConfig::preSave function core/modules/field/src/Entity/FieldConfig.php Overrides \Drupal\Core\Entity\Entity::preSave().
FieldItemBase::preSave function core/lib/Drupal/Core/Field/FieldItemBase.php Defines custom presave behavior for field values.

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