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
BlockContentHooks::blockPreSave function core/modules/block_content/src/Hook/BlockContentHooks.php Implements hook_ENTITY_TYPE_presave().
BlockContentTestHooks::blockContentPresave function core/modules/block_content/tests/modules/block_content_test/src/Hook/BlockContentTestHooks.php Implements hook_ENTITY_TYPE_presave().
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
Ckeditor5Hooks::editorPresave function core/modules/ckeditor5/src/Hook/Ckeditor5Hooks.php Implements hook_ENTITY_TYPE_presave() for editor entities.
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[[api-linebreak]]
ConfigEntityBaseUnitTest::testPreSaveWithPluginCollections function core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php @covers ::preSave[[api-linebreak]]
@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_ENTITY_TYPE_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
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[[api-linebreak]]
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.
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[[api-linebreak]]
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/Hook/EntityOperations.php Implements hook_entity_presave().
EntityReferenceItem::preSave function core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php
EntityReferenceUuidItem::preSave function core/modules/jsonapi/tests/modules/jsonapi_test_field_type/src/Plugin/Field/FieldType/EntityReferenceUuidItem.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.
EntityUnitTest::testPreSave function core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php @covers ::preSave[[api-linebreak]]

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