Search for alter

  1. Search 7.x for alter
  2. Search 8.9.x for alter
  3. Search 10.3.x for alter
  4. Search 11.x for alter
  5. Other projects
Title Object type File name Summary
AcceptHeaderRoutingTestServiceProvider::alter function core/modules/system/tests/modules/accept_header_routing_test/src/AcceptHeaderRoutingTestServiceProvider.php Modifies existing service definitions.
AccessPluginBase::alterRouteDefinition function core/modules/views/src/Plugin/views/access/AccessPluginBase.php Allows access plugins to alter the route definition of a view.
AccountForm::alterPreferredLangcodeDescription function core/modules/user/src/AccountForm.php Alters the preferred language widget description.
AdminRouteSubscriber::alterRoutes function core/modules/system/src/EventSubscriber/AdminRouteSubscriber.php Alters existing routes for a specific collection.
AdminRouteSubscriberTest::providerTestAlterRoutes function core/modules/system/tests/src/Unit/Routing/AdminRouteSubscriberTest.php
AdminRouteSubscriberTest::testAlterRoutes function core/modules/system/tests/src/Unit/Routing/AdminRouteSubscriberTest.php @covers ::alterRoutes
@covers ::isHtmlRoute
advisory_feed_test_system_info_alter function core/modules/system/tests/modules/advisory_feed_test/advisory_feed_test.module Implements hook_system_info_alter().
AggregatorPluginManagerTest::testFetcherInfoAlter function core/modules/aggregator/tests/src/Kernel/AggregatorPluginManagerTest.php Tests that the fetcher info alter hook works.
AggregatorPluginManagerTest::testParserInfoAlter function core/modules/aggregator/tests/src/Kernel/AggregatorPluginManagerTest.php Tests that the fetcher info alter hook works.
AggregatorPluginManagerTest::testProcessorInfoAlter function core/modules/aggregator/tests/src/Kernel/AggregatorPluginManagerTest.php Tests that the fetcher info alter hook works.
aggregator_display_configurable_test_entity_base_field_info_alter function core/modules/aggregator/tests/modules/aggregator_display_configurable_test/aggregator_display_configurable_test.module Implements hook_entity_base_field_info_alter().
aggregator_test_aggregator_fetcher_info_alter function core/modules/aggregator/tests/modules/aggregator_test/aggregator_test.module Implements hook_aggregator_fetcher_info_alter().
aggregator_test_aggregator_parser_info_alter function core/modules/aggregator/tests/modules/aggregator_test/aggregator_test.module Implements hook_aggregator_parser_info_alter().
aggregator_test_aggregator_processor_info_alter function core/modules/aggregator/tests/modules/aggregator_test/aggregator_test.module Implements hook_aggregator_processor_info_alter().
AjaxTestMessageCommandForm::makeMessageAlternate function core/modules/system/tests/modules/ajax_test/src/Form/AjaxTestMessageCommandForm.php Callback for testing MessageCommand using an alternate message location.
AlterableInterface interface core/lib/Drupal/Core/Database/Query/AlterableInterface.php Interface for a query that can be manipulated via an alter hook.
AlterableInterface.php file core/lib/Drupal/Core/Database/Query/AlterableInterface.php
AlterableInterface::addMetaData function core/lib/Drupal/Core/Database/Query/AlterableInterface.php Adds additional metadata to the query.
AlterableInterface::addTag function core/lib/Drupal/Core/Database/Query/AlterableInterface.php Adds a tag to a query.
AlterableInterface::getMetaData function core/lib/Drupal/Core/Database/Query/AlterableInterface.php Retrieves a given piece of metadata.
AlterableInterface::hasAllTags function core/lib/Drupal/Core/Database/Query/AlterableInterface.php Determines if a given query has all specified tags.
AlterableInterface::hasAnyTag function core/lib/Drupal/Core/Database/Query/AlterableInterface.php Determines if a given query has any specified tag.
AlterableInterface::hasTag function core/lib/Drupal/Core/Database/Query/AlterableInterface.php Determines if a given query has a given tag.
AlterTest class core/tests/Drupal/KernelTests/Core/Database/AlterTest.php Tests the hook_query_alter capabilities of the Select builder.
AlterTest class core/modules/system/tests/src/Functional/Form/AlterTest.php Tests hook_form_alter() and hook_form_FORM_ID_alter().
AlterTest class core/modules/system/tests/src/Functional/Common/AlterTest.php Tests alteration of arguments passed to \Drupal::moduleHandler->alter().
AlterTest.php file core/modules/system/tests/src/Functional/Common/AlterTest.php
AlterTest.php file core/modules/system/tests/src/Functional/Form/AlterTest.php
AlterTest.php file core/tests/Drupal/KernelTests/Core/Database/AlterTest.php
AlterTest::$defaultTheme property core/modules/system/tests/src/Functional/Common/AlterTest.php The theme to install as the default for testing.
AlterTest::$defaultTheme property core/modules/system/tests/src/Functional/Form/AlterTest.php The theme to install as the default for testing.
AlterTest::$modules property core/modules/system/tests/src/Functional/Common/AlterTest.php Modules to enable.
AlterTest::$modules property core/modules/system/tests/src/Functional/Form/AlterTest.php Modules to enable.
AlterTest::testAlterChangeConditional function core/tests/Drupal/KernelTests/Core/Database/AlterTest.php Tests that we can alter a query's conditionals.
AlterTest::testAlterChangeFields function core/tests/Drupal/KernelTests/Core/Database/AlterTest.php Tests that we can alter the fields of a query.
AlterTest::testAlterExpression function core/tests/Drupal/KernelTests/Core/Database/AlterTest.php Tests that we can alter expressions in the query.
AlterTest::testAlterRemoveRange function core/tests/Drupal/KernelTests/Core/Database/AlterTest.php Tests that we can remove a range() value from a query.
AlterTest::testAlterWithJoin function core/tests/Drupal/KernelTests/Core/Database/AlterTest.php Tests that we can alter the joins on a query.
AlterTest::testDrupalAlter function core/modules/system/tests/src/Functional/Common/AlterTest.php Tests if the theme has been altered.
AlterTest::testExecutionOrder function core/modules/system/tests/src/Functional/Form/AlterTest.php Tests execution order of hook_form_alter() and hook_form_FORM_ID_alter().
AlterTest::testSimpleAlter function core/tests/Drupal/KernelTests/Core/Database/AlterTest.php Tests that we can do basic alters.
AlterTest::testSimpleAlterSubquery function core/tests/Drupal/KernelTests/Core/Database/AlterTest.php Tests that we can do basic alters on subqueries.
AttachedAssetsTest::testAlter function core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php Tests altering a JavaScript's weight via hook_js_alter().
AttachedAssetsTest::testLibraryAlter function core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php Adds a JavaScript library to the page and alters it.
automated_cron_form_system_cron_settings_alter function core/modules/automated_cron/automated_cron.module Implements hook_form_FORM_ID_alter() for the system_cron_settings() form.
bartik_form_alter function core/themes/bartik/bartik.theme Implements hook_form_alter().
bartik_theme_suggestions_form_alter function core/themes/bartik/bartik.theme Implements hook_theme_suggestions_HOOK_alter() for form templates.
BlockContentEntityReferenceSelectionTest::testQueriesNotAltered function core/modules/block_content/tests/src/Kernel/BlockContentEntityReferenceSelectionTest.php Tests to make sure queries without the expected tags are not altered.
BlockContentModerationHandler::enforceRevisionsBundleFormAlter function core/modules/content_moderation/src/Entity/Handler/BlockContentModerationHandler.php Alters bundle forms to enforce revision handling.
BlockContentModerationHandler::enforceRevisionsEntityFormAlter function core/modules/content_moderation/src/Entity/Handler/BlockContentModerationHandler.php Alters entity forms to enforce revision handling.

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