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 10.3.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
BaseFieldOverride::preSave function core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php
Block::preSave function core/modules/block/src/Entity/Block.php
BlockContent::preSaveRevision function core/modules/block_content/src/Entity/BlockContent.php
BlockContentTestHooks::blockContentPresave function core/modules/block_content/tests/modules/block_content_test/src/Hook/BlockContentTestHooks.php Implements hook_block_content_presave().
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
Comment::preSave function core/modules/comment/src/Entity/Comment.php
CommentHooks::entityViewDisplayPresave function core/modules/comment/src/Hook/CommentHooks.php 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.
ConfigTestHooksHooks::configTestPresave function core/modules/config/tests/config_test/src/Hook/ConfigTestHooksHooks.php Implements hook_config_test_presave().
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
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
ContentModerationHooks::entityPresave function core/modules/content_moderation/src/Hook/ContentModerationHooks.php Implements hook_entity_presave().
ContentTranslationHooks::entityPresave function core/modules/content_translation/src/Hook/ContentTranslationHooks.php Implements hook_entity_presave().
DecimalItem::preSave function core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DecimalItem.php
EditorHooks::filterFormatPresave function core/modules/editor/src/Hook/EditorHooks.php Implements hook_ENTITY_TYPE_presave().
EditorTestHooks::filePresave function core/modules/editor/tests/modules/editor_test/src/Hook/EditorTestHooks.php Implements hook_ENTITY_TYPE_presave() for file entities.
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
EntityCrudHookTestHooks::blockPresave function core/modules/system/tests/modules/entity_crud_hook_test/src/Hook/EntityCrudHookTestHooks.php Implements hook_ENTITY_TYPE_presave() for block entities.
EntityCrudHookTestHooks::commentPresave function core/modules/system/tests/modules/entity_crud_hook_test/src/Hook/EntityCrudHookTestHooks.php Implements hook_ENTITY_TYPE_presave() for comment entities.
EntityCrudHookTestHooks::entityPresave function core/modules/system/tests/modules/entity_crud_hook_test/src/Hook/EntityCrudHookTestHooks.php Implements hook_entity_presave().
EntityCrudHookTestHooks::filePresave function core/modules/system/tests/modules/entity_crud_hook_test/src/Hook/EntityCrudHookTestHooks.php Implements hook_ENTITY_TYPE_presave() for file entities.
EntityCrudHookTestHooks::nodePresave function core/modules/system/tests/modules/entity_crud_hook_test/src/Hook/EntityCrudHookTestHooks.php Implements hook_ENTITY_TYPE_presave() for node entities.
EntityCrudHookTestHooks::taxonomyTermPresave function core/modules/system/tests/modules/entity_crud_hook_test/src/Hook/EntityCrudHookTestHooks.php Implements hook_ENTITY_TYPE_presave() for taxonomy_term entities.
EntityCrudHookTestHooks::taxonomyVocabularyPresave function core/modules/system/tests/modules/entity_crud_hook_test/src/Hook/EntityCrudHookTestHooks.php Implements hook_ENTITY_TYPE_presave() for taxonomy_vocabulary entities.
EntityCrudHookTestHooks::userPresave function core/modules/system/tests/modules/entity_crud_hook_test/src/Hook/EntityCrudHookTestHooks.php Implements hook_ENTITY_TYPE_presave() for user entities.
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/content_moderation/src/EntityOperations.php Acts on an entity and set published status based on the moderation state.
EntityOperations::entityPresave function core/modules/workspaces/src/EntityOperations.php Acts on an entity before it is created or updated.
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.
EntityTestHooks::entityPresave function core/modules/system/tests/modules/entity_test/src/Hook/EntityTestHooks.php Implements hook_entity_presave().
EntityTestUpdateHooks::viewPresave function core/modules/system/tests/modules/entity_test_update/src/Hook/EntityTestUpdateHooks.php Implements hook_ENTITY_TYPE_presave() for the 'view' entity type.

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