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
BaseFieldOverride::preSave function core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.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 Defines custom presave behavior for field values.
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 Acts on an entity before the presave hook is invoked.
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().
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 Acts on a revision before it gets saved.
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 Performs presave entity processing.
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 Defines custom presave behavior for field values.
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 Acts on an entity before the presave hook is invoked.
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 Acts on an entity before the presave hook is invoked.
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 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/Hook/EntityOperations.php Implements hook_entity_presave().
EntityReferenceItem::preSave function core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php Defines custom presave behavior for field values.
EntityReferenceUuidItem::preSave function core/modules/jsonapi/tests/modules/jsonapi_test_field_type/src/Plugin/Field/FieldType/EntityReferenceUuidItem.php Defines custom presave behavior for field values.
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]]
FieldHooks::fieldConfigPresave function core/modules/field/src/Hook/FieldHooks.php Implements hook_ENTITY_TYPE_presave() for 'field_config'.
FieldItemBase::preSave function core/lib/Drupal/Core/Field/FieldItemBase.php Defines custom presave behavior for field values.
FieldItemInterface::preSave function core/lib/Drupal/Core/Field/FieldItemInterface.php Defines custom presave behavior for field values.
FieldItemList::preSave function core/lib/Drupal/Core/Field/FieldItemList.php Defines custom presave behavior for field values.
FieldItemListInterface::preSave function core/lib/Drupal/Core/Field/FieldItemListInterface.php Defines custom presave behavior for field values.
FieldUiHooks::entityFormModePresave function core/modules/field_ui/src/Hook/FieldUiHooks.php Implements hook_ENTITY_TYPE_presave().
FieldUiHooks::entityViewModePresave function core/modules/field_ui/src/Hook/FieldUiHooks.php Implements hook_ENTITY_TYPE_presave().
hook_entity_presave function core/lib/Drupal/Core/Entity/entity.api.php Act on an entity before it is created or updated.
hook_ENTITY_TYPE_presave function core/lib/Drupal/Core/Entity/entity.api.php Act on a specific type of entity before it is created or updated.
ImageHooks::entityPresave function core/modules/image/src/Hook/ImageHooks.php Implements hook_entity_presave().

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