Search for prepare

  1. Search 7.x for prepare
  2. Search 9.5.x for prepare
  3. Search 10.3.x for prepare
  4. Search 11.x for prepare
  5. Other projects
Title Object type File name Summary
EntityAccessControlHandler::prepareUser function core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php Loads the current account object, if it does not exist yet.
EntityDenormalizerBase::prepareInput function core/modules/jsonapi/src/Normalizer/EntityDenormalizerBase.php Prepares the input data to create the entity.
EntityDisplayModeAddForm::prepareEntity function core/modules/field_ui/src/Form/EntityDisplayModeAddForm.php Prepares the entity object before the form is built first.
EntityField::prepareItemsByDelta function core/modules/views/src/Plugin/views/field/EntityField.php Adapts the $items according to the delta configuration.
EntityForm::prepareEntity function core/lib/Drupal/Core/Entity/EntityForm.php Prepares the entity object before the form is built first.
EntityForm::prepareInvokeAll function core/lib/Drupal/Core/Entity/EntityForm.php Invokes the specified prepare hook variant.
EntityFormModeAddForm::prepareEntity function core/modules/field_ui/src/Form/EntityFormModeAddForm.php Prepares the entity object before the form is built first.
EntityReferenceFormatterBase::prepareView function core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/EntityReferenceFormatterBase.php Loads the entities referenced in that field across all the entities being
viewed.
EntityTestForm::prepareEntity function core/modules/system/tests/modules/entity_test/src/EntityTestForm.php Prepares the entity object before the form is built first.
EntityTypeInfo::entityPrepareForm function core/modules/content_moderation/src/EntityTypeInfo.php Replaces the entity form entity object with a proper revision object.
entity_test_entity_prepare_view function core/modules/system/tests/modules/entity_test/entity_test.module Implements hook_entity_prepare_view().
Extension::prepareRow function core/modules/system/src/Plugin/migrate/source/Extension.php Adds additional data to the row.
Field::prepareRow function core/modules/field/src/Plugin/migrate/source/d6/Field.php Adds additional data to the row.
Field::prepareRow function core/modules/field/src/Plugin/migrate/source/d7/Field.php Adds additional data to the row.
FieldInstance::prepareRow function core/modules/field/src/Plugin/migrate/source/d6/FieldInstance.php Adds additional data to the row.
FieldInstance::prepareRow function core/modules/field/src/Plugin/migrate/source/d7/FieldInstance.php Adds additional data to the row.
FieldTest::providerTestPrepareItemsByDelta function core/modules/views/tests/src/Unit/Plugin/field/FieldTest.php Provides test data for testPrepareItemsByDelta().
FieldTest::testPrepareItemsByDelta function core/modules/views/tests/src/Unit/Plugin/field/FieldTest.php @covers ::prepareItemsByDelta
FieldTestEntityField::executePrepareItemsByDelta function core/modules/views/tests/src/Unit/Plugin/field/FieldTest.php
File::prepareRow function core/modules/file/src/Plugin/migrate/source/d7/File.php Adds additional data to the row.
File::prepareRow function core/modules/file/src/Plugin/migrate/source/d6/File.php Adds additional data to the row.
FileMediaFormatterBase::prepareAttributes function core/modules/file/src/Plugin/Field/FieldFormatter/FileMediaFormatterBase.php Prepare the attributes according to the settings.
FileMigrationTestTrait::prepareMigration function core/modules/file/tests/src/Kernel/Migrate/d6/FileMigrationTestTrait.php
FileSystem::prepareDestination function core/lib/Drupal/Core/File/FileSystem.php Prepares the destination for a file copy or move operation.
FileSystem::prepareDirectory function core/lib/Drupal/Core/File/FileSystem.php Checks that the directory exists and is writable.
FileSystemDeprecationTest::testDeprecatedFilePrepareDirectory function core/tests/Drupal/KernelTests/Core/File/FileSystemDeprecationTest.php @expectedDeprecation file_prepare_directory() is deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\File\FileSystemInterface::prepareDirectory(). See https://www.drupal.org/node/3006851.
FileSystemDeprecationTest::testDeprecatedUnmanagedPrepare function core/tests/Drupal/KernelTests/Core/File/FileSystemDeprecationTest.php @expectedDeprecation file_unmanaged_prepare() is deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\File\FileSystemInterface::getDestinationFilename() instead. See https://www.drupal.org/node/3006851.
FileSystemInterface::prepareDirectory function core/lib/Drupal/Core/File/FileSystemInterface.php Checks that the directory exists and is writable.
FileUploadForm::prepareMediaEntityForSave function core/modules/media_library/src/Form/FileUploadForm.php Prepares a created media item to be permanently saved.
FileUploadResource::prepareFilename function core/modules/file/src/Plugin/rest/resource/FileUploadResource.php Prepares the filename to strip out any malicious extensions.
FileVideoFormatter::prepareAttributes function core/modules/file/src/Plugin/Field/FieldFormatter/FileVideoFormatter.php Prepare the attributes according to the settings.
file_prepare_directory function core/includes/file.inc Checks that the directory exists and is writable.
file_unmanaged_prepare function core/includes/file.inc Internal function that prepares the destination for a file_unmanaged_copy or
file_unmanaged_move operation.
FilterBase::prepare function core/modules/filter/src/Plugin/FilterBase.php Prepares the text for processing.
FilterFormat::prepareRow function core/modules/filter/src/Plugin/migrate/source/d6/FilterFormat.php Adds additional data to the row.
FilterFormat::prepareRow function core/modules/filter/src/Plugin/migrate/source/d7/FilterFormat.php Adds additional data to the row.
FilterHtml::prepareAttributeValues function core/modules/filter/src/Plugin/Filter/FilterHtml.php Helper function to prepare attribute values including wildcards.
FilterInterface::prepare function core/modules/filter/src/Plugin/FilterInterface.php Prepares the text for processing.
FilterPluginBase::prepareFilterSelectOptions function core/modules/views/src/Plugin/views/filter/FilterPluginBase.php Sanitizes the HTML select element's options.
FormatterBase::prepareView function core/lib/Drupal/Core/Field/FormatterBase.php Allows formatters to load information for field values being displayed.
FormatterInterface::prepareView function core/lib/Drupal/Core/Field/FormatterInterface.php Allows formatters to load information for field values being displayed.
FormatterPluginManager::prepareConfiguration function core/lib/Drupal/Core/Field/FormatterPluginManager.php Merges default values for formatter configuration.
FormBuilder::prepareForm function core/lib/Drupal/Core/Form/FormBuilder.php Prepares a structured form array.
FormBuilderInterface::prepareForm function core/lib/Drupal/Core/Form/FormBuilderInterface.php Prepares a structured form array.
FormState::prepareCallback function core/lib/Drupal/Core/Form/FormState.php Converts support notations for a form callback to a valid callable.
FormStateDecoratorBase::prepareCallback function core/lib/Drupal/Core/Form/FormStateDecoratorBase.php Converts support notations for a form callback to a valid callable.
FormStateDecoratorBaseTest::providerPrepareCallback function core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php Provides data to self::testPrepareCallback().
FormStateDecoratorBaseTest::testPrepareCallback function core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php @covers ::prepareCallback
FormStateInterface::prepareCallback function core/lib/Drupal/Core/Form/FormStateInterface.php Converts support notations for a form callback to a valid callable.
FormStateTest::testPrepareCallbackArray function core/tests/Drupal/Tests/Core/Form/FormStateTest.php @covers ::prepareCallback

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