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
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 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 Tests pre save.
FieldConfig::preSave function core/modules/field/src/Entity/FieldConfig.php Overrides \Drupal\Core\Entity\EntityBase::preSave().
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.
FieldLayoutEntityDisplayTest::testPreSave function core/modules/field_layout/tests/src/Kernel/FieldLayoutEntityDisplayTest.php Tests pre save.
FieldLayoutEntityDisplayTrait::preSave function core/modules/field_layout/src/Entity/FieldLayoutEntityDisplayTrait.php Overrides \Drupal\Core\Entity\EntityDisplayBase::preSave().
FieldStorageConfig::preSave function core/modules/field/src/Entity/FieldStorageConfig.php Overrides \Drupal\Core\Entity\EntityBase::preSave().
FieldStorageConfig::preSaveNew function core/modules/field/src/Entity/FieldStorageConfig.php Prepares saving a new field definition.
FieldStorageConfig::preSaveUpdated function core/modules/field/src/Entity/FieldStorageConfig.php Prepares saving an updated field definition.
FieldTestItem::preSave function core/modules/system/tests/modules/entity_test/src/Plugin/Field/FieldType/FieldTestItem.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().
File::preSave function core/modules/file/src/Entity/File.php Acts on an entity before the presave hook is invoked.
FilterAPITest::testFilterFormatPreSave function core/modules/filter/tests/src/Kernel/FilterAPITest.php Tests that FilterFormat::preSave() only saves customized plugins.
FilterFormat::preSave function core/modules/filter/src/Entity/FilterFormat.php Acts on an entity before the presave hook is invoked.
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().
ImageItem::preSave function core/modules/image/src/Plugin/Field/FieldType/ImageItem.php Defines custom presave behavior for field values.
ImageModuleTestHooks::imageStylePresave function core/modules/image/tests/modules/image_module_test/src/Hook/ImageModuleTestHooks.php Implements hook_ENTITY_TYPE_presave().
InlineBlockEntityOperations::handlePreSave function core/modules/layout_builder/src/InlineBlockEntityOperations.php Handles saving a parent entity.
InlineBlockEntityOperationsTest::testPreSaveWithSyncingEntity function core/modules/layout_builder/tests/src/Unit/InlineBlockEntityOperationsTest.php Tests calling handlePreSave() with an entity that is syncing.
JsonapiTestNonCacheableMethodsHooks::entityPresave function core/modules/jsonapi/tests/modules/jsonapi_test_non_cacheable_methods/src/Hook/JsonapiTestNonCacheableMethodsHooks.php Implements hook_entity_presave().
LayoutBuilderEntityViewDisplay::preSave function core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php Acts on an entity before the presave hook is invoked.
LayoutBuilderHooks::entityPresave function core/modules/layout_builder/src/Hook/LayoutBuilderHooks.php Implements hook_entity_presave().
LayoutSectionItemList::preSave function core/modules/layout_builder/src/Field/LayoutSectionItemList.php Defines custom presave behavior for field values.
Media::preSave function core/modules/media/src/Entity/Media.php Acts on an entity before the presave hook is invoked.
Media::preSaveRevision function core/modules/media/src/Entity/Media.php Acts on a revision before it gets saved.
MenuLinkContent::preSave function core/modules/menu_link_content/src/Entity/MenuLinkContent.php Acts on an entity before the presave hook is invoked.
MenuTreeStorage::preSave function core/lib/Drupal/Core/Menu/MenuTreeStorage.php Fills in all the fields the database save needs, using the link definition.
ModerationHandler::onPresave function core/modules/content_moderation/src/Entity/Handler/ModerationHandler.php Operates on moderated content entities preSave().
ModerationHandlerInterface::onPresave function core/modules/content_moderation/src/Entity/Handler/ModerationHandlerInterface.php Operates on moderated content entities preSave().
Node::preSave function core/modules/node/src/Entity/Node.php Acts on an entity before the presave hook is invoked.
Node::preSaveRevision function core/modules/node/src/Entity/Node.php Acts on a revision before it gets saved.
NodeTestHooks::nodePresave function core/modules/node/tests/modules/node_test/src/Hook/NodeTestHooks.php Implements hook_ENTITY_TYPE_presave() for node entities.
PasswordItem::preSave function core/lib/Drupal/Core/Field/Plugin/Field/FieldType/PasswordItem.php Defines custom presave behavior for field values.
PasswordItemTest::testPreSaveExceptionExisting function core/tests/Drupal/KernelTests/Core/Field/FieldType/PasswordItemTest.php Tests pre save exception existing.
PasswordItemTest::testPreSaveExceptionNew function core/tests/Drupal/KernelTests/Core/Field/FieldType/PasswordItemTest.php Tests pre save exception new.
PasswordItemTest::testPreSaveExistingEmptyString function core/tests/Drupal/KernelTests/Core/Field/FieldType/PasswordItemTest.php Tests pre save existing empty string.
PasswordItemTest::testPreSaveExistingMultipleSpacesString function core/tests/Drupal/KernelTests/Core/Field/FieldType/PasswordItemTest.php Tests pre save existing multiple spaces string.

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