Search for presave

  1. Search 7.x for presave
  2. Search 9.5.x for presave
  3. Search 10.3.x for presave
  4. Search 11.x for presave
  5. Other projects
Title Object type File name Summary
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
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 @covers ::preSave
@covers ::calculateDependencies
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\Entity::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
field_field_config_presave function core/modules/field/field.module Implements hook_ENTITY_TYPE_presave() for 'field_config'.
field_ui_entity_form_mode_presave function core/modules/field_ui/field_ui.module Implements hook_entity_form_mode_presave().
field_ui_entity_view_mode_presave function core/modules/field_ui/field_ui.module Implements hook_entity_view_mode_presave().
File::preSave function core/modules/file/src/Entity/File.php
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
forum_node_presave function core/modules/forum/forum.module Implements hook_ENTITY_TYPE_presave() for node entities.
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.
ImageItem::preSave function core/modules/image/src/Plugin/Field/FieldType/ImageItem.php
image_entity_presave function core/modules/image/image.module Implements hook_entity_presave().
image_module_test_image_style_presave function core/modules/image/tests/modules/image_module_test/image_module_test.module Implements hook_image_style_presave().
InlineBlockEntityOperations::handlePreSave function core/modules/layout_builder/src/InlineBlockEntityOperations.php Handles saving a parent entity.
LayoutBuilderEntityViewDisplay::preSave function core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php
LayoutSectionItemList::preSave function core/modules/layout_builder/src/Field/LayoutSectionItemList.php
layout_builder_entity_presave function core/modules/layout_builder/layout_builder.module Implements hook_entity_presave().
LegacyEntityDisplayBaseTest::testLegacyPreSave function core/tests/Drupal/KernelTests/Core/Entity/LegacyEntityDisplayBaseTest.php Tests legacy handling of 'type' => 'hidden'.
Media::preSave function core/modules/media/src/Entity/Media.php
Media::preSaveRevision function core/modules/media/src/Entity/Media.php
MenuLinkContent::preSave function core/modules/menu_link_content/src/Entity/MenuLinkContent.php
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
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
Node::preSaveRevision function core/modules/node/src/Entity/Node.php
node_test_node_presave function core/modules/node/tests/modules/node_test/node_test.module Implements hook_ENTITY_TYPE_presave() for node entities.
PasswordItem::preSave function core/lib/Drupal/Core/Field/Plugin/Field/FieldType/PasswordItem.php
PathAlias::preSave function core/modules/path_alias/src/Entity/PathAlias.php
PathItem::preSave function core/modules/path/src/Plugin/Field/FieldType/PathItem.php
rest_view_presave function core/modules/rest/rest.module Implements hook_ENTITY_TYPE_presave().
RevisionableInterface::preSaveRevision function core/lib/Drupal/Core/Entity/RevisionableInterface.php Acts on a revision before it gets saved.
Role::preSave function core/modules/user/src/Entity/Role.php
system_entity_form_display_presave function core/modules/system/system.module Implements hook_ENTITY_TYPE_presave() for entity_form_display entities.
system_path_alias_presave function core/modules/system/system.module Implements hook_ENTITY_TYPE_presave().
taxonomy_crud_taxonomy_vocabulary_presave function core/modules/taxonomy/tests/modules/taxonomy_crud/taxonomy_crud.module Implements hook_ENTITY_TYPE_presave() for taxonomy_vocabulary entities.
Term::preSave function core/modules/taxonomy/src/Entity/Term.php
tour_test_tour_presave function core/modules/tour/tests/tour_test/tour_test.module Implements hook_ENTITY_TYPE_presave() for tour.
User::preSave function core/modules/user/src/Entity/User.php
user_user_presave function core/modules/user/user.module Implements hook_ENTITY_TYPE_presave() for user entities.
View::preSave function core/modules/views/src/Entity/View.php
views_view_presave function core/modules/views/views.module Implements hook_ENTITY_TYPE_presave().

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