Search for presave

  1. Search 7.x for presave
  2. Search 9.5.x for presave
  3. Search 8.9.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
ChangedTestItem::preSave function core/modules/system/tests/modules/entity_test/src/Plugin/Field/FieldType/ChangedTestItem.php Defines custom presave behavior for field values.
ckeditor5_editor_presave function core/modules/ckeditor5/ckeditor5.module Implements hook_ENTITY_TYPE_presave() for editor entities.
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
ConfigEntityBaseUnitTest::providerTestSetAndPreSaveWithPluginCollections function core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php
ConfigEntityBaseUnitTest::testPreSaveDuringSync function core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php @covers ::preSave
ConfigEntityBaseUnitTest::testPreSaveWithPluginCollections function core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php @covers ::preSave
@dataProvider providerTestSetAndPreSaveWithPluginCollections
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
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
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_entity_view_display_presave function core/modules/datetime_range/datetime_range.module Implements hook_ENTITY_TYPE_presave() for entity_view_display entities.
DecimalItem::preSave function core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DecimalItem.php
editor_editor_presave function core/modules/editor/editor.module Implements hook_ENTITY_TYPE_presave().
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/editor_test.module Implements hook_ENTITY_TYPE_presave() for file entities.
EntityBase::preSave function core/lib/Drupal/Core/Entity/EntityBase.php
EntityDisplayBase::preSave function core/lib/Drupal/Core/Entity/EntityDisplayBase.php
EntityDisplayBaseTest::testPreSave function core/tests/Drupal/KernelTests/Core/Entity/EntityDisplayBaseTest.php @covers ::preSave
EntityDisplayModeBase::preSave function core/lib/Drupal/Core/Entity/EntityDisplayModeBase.php
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
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().

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