Search for alter

  1. Search 7.x for alter
  2. Search 9.5.x for alter
  3. Search 8.9.x for alter
  4. Search 10.3.x for alter
  5. Other projects
Title Object type File name Summary
QueryPluginBase::alter function core/modules/views/src/Plugin/views/query/QueryPluginBase.php Let modules modify the query just prior to finalizing it.
RecipeTestTrait::alterRecipe function core/tests/Drupal/FunctionalTests/Core/Recipe/RecipeTestTrait.php Alters an existing recipe.
ReferenceBase::alterFieldInstanceMigration function core/modules/migrate_drupal/src/Plugin/migrate/field/ReferenceBase.php Apply any custom processing to the field instance migration.
RegistryTest::testThemeRegistryAlterByTheme function core/tests/Drupal/KernelTests/Core/Theme/RegistryTest.php Tests that the theme registry can be altered by themes.
RenderCallbacks::alterLayoutBuilder function core/modules/navigation/src/RenderCallbacks.php Pre-render callback for layout builder.
RenderElementHelper::alterElementInfo function core/modules/inline_form_errors/src/RenderElementHelper.php Alters the element type info.
Requirements1TestHooks::requirementsAlter function core/modules/system/tests/modules/requirements1_test/src/Hook/Requirements1TestHooks.php Implements hook_requirements_alter().
RequirementsTest::testRequirementsAlter function core/modules/system/tests/src/Kernel/Module/RequirementsTest.php Tests requirements data altering.
ResourceTestBase::alterExpectedDocumentForRevision function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Alters the expected JSON:API document for revisions.
Role::alterRouteDefinition function core/modules/user/src/Plugin/views/access/Role.php Allows access plugins to alter the route definition of a view.
RouteCachingQueryAlteredTest class core/tests/Drupal/FunctionalTests/Routing/RouteCachingQueryAlteredTest.php Tests the route cache when the request's query parameters are altered.
RouteCachingQueryAlteredTest.php file core/tests/Drupal/FunctionalTests/Routing/RouteCachingQueryAlteredTest.php
RouteCachingQueryAlteredTest::$defaultTheme property core/tests/Drupal/FunctionalTests/Routing/RouteCachingQueryAlteredTest.php The theme to install as the default for testing.
RouteCachingQueryAlteredTest::$modules property core/tests/Drupal/FunctionalTests/Routing/RouteCachingQueryAlteredTest.php Modules to install.
RouteCachingQueryAlteredTest::setUp function core/tests/Drupal/FunctionalTests/Routing/RouteCachingQueryAlteredTest.php
RouteCachingQueryAlteredTest::testRouteCollectionCacheAfterException function core/tests/Drupal/FunctionalTests/Routing/RouteCachingQueryAlteredTest.php Tests route collection cache after an exception.
RoutePreloader::onAlterRoutes function core/lib/Drupal/Core/Routing/RoutePreloader.php Alters existing routes for a specific collection.
RoutePreloaderTest::testOnAlterRoutesWithAdminPathNoAdminRoute function core/tests/Drupal/Tests/Core/Routing/RoutePreloaderTest.php Tests onAlterRoutes with "admin" appearing in the path.
RoutePreloaderTest::testOnAlterRoutesWithAdminRoutes function core/tests/Drupal/Tests/Core/Routing/RoutePreloaderTest.php Tests onAlterRoutes with just admin routes.
RoutePreloaderTest::testOnAlterRoutesWithNonAdminRoutes function core/tests/Drupal/Tests/Core/Routing/RoutePreloaderTest.php Tests onAlterRoutes with admin routes and non admin routes.
RouteSubscriber::alterRoutes function core/modules/workspaces_ui/src/Routing/RouteSubscriber.php Alters existing routes for a specific collection.
RouteSubscriber::alterRoutes function core/modules/media/tests/modules/media_test_embed/src/Routing/RouteSubscriber.php Alters existing routes for a specific collection.
RouteSubscriber::alterRoutes function core/modules/config_translation/src/Routing/RouteSubscriber.php Alters existing routes for a specific collection.
RouteSubscriber::alterRoutes function core/modules/media_library/src/Routing/RouteSubscriber.php Alters existing routes for a specific collection.
RouteSubscriber::alterRoutes function core/modules/node/src/Routing/RouteSubscriber.php Alters existing routes for a specific collection.
RouteSubscriber::alterRoutes function core/modules/serialization/tests/modules/user_route_alter_test/src/Routing/RouteSubscriber.php Alters existing routes for a specific collection.
RouteSubscriber::alterRoutes function core/modules/views/src/EventSubscriber/RouteSubscriber.php Alters existing routes for a specific collection.
RouteSubscriber::alterRoutes function core/modules/field_ui/src/Routing/RouteSubscriber.php Alters existing routes for a specific collection.
RouteSubscriber::alterRoutes function core/modules/block_content/src/Routing/RouteSubscriber.php Alters existing routes for a specific collection.
RouteSubscriberBase::alterRoutes function core/lib/Drupal/Core/Routing/RouteSubscriberBase.php Alters existing routes for a specific collection.
RouteSubscriberBase::onAlterRoutes function core/lib/Drupal/Core/Routing/RouteSubscriberBase.php Delegates the route altering to self::alterRoutes().
RouteSubscriberTest::testOnAlterRoutes function core/modules/views/tests/src/Unit/EventSubscriber/RouteSubscriberTest.php Tests the onAlterRoutes method.
RouteTestSubscriber::alterRoutes function core/modules/system/tests/modules/router_test_directory/src/RouteTestSubscriber.php Alters existing routes for a specific collection.
RoutingEvents::ALTER constant core/lib/Drupal/Core/Routing/RoutingEvents.php Name of the event fired during route collection to allow changes to routes.
Schema::alterTable function core/modules/sqlite/src/Driver/Database/sqlite/Schema.php Create a table with a new schema containing the old content.
SearchDateIntervalTest::testDateIntervalQueryAlter function core/modules/search/tests/src/Functional/SearchDateIntervalTest.php Tests searching with date filters that exclude some translations.
SearchDateQueryAlterHooks class core/modules/search/tests/modules/search_date_query_alter/src/Hook/SearchDateQueryAlterHooks.php Hook implementations for search_date_query_alter.
SearchDateQueryAlterHooks.php file core/modules/search/tests/modules/search_date_query_alter/src/Hook/SearchDateQueryAlterHooks.php
SearchDateQueryAlterHooks::querySearchNodeSearchAlter function core/modules/search/tests/modules/search_date_query_alter/src/Hook/SearchDateQueryAlterHooks.php Implements hook_query_TAG_alter().
SearchHooks::formSearchBlockFormAlter function core/modules/search/src/Hook/SearchHooks.php Implements hook_form_FORM_ID_alter() for the search_block_form form.
SearchInterface::searchFormAlter function core/modules/search/src/Plugin/SearchInterface.php Alters the search form when being built for a given plugin.
SearchPluginBase::searchFormAlter function core/modules/search/src/Plugin/SearchPluginBase.php Alters the search form when being built for a given plugin.
SearchQueryAlterHooks class core/modules/search/tests/modules/search_query_alter/src/Hook/SearchQueryAlterHooks.php Hook implementations for search_query_alter.
SearchQueryAlterHooks.php file core/modules/search/tests/modules/search_query_alter/src/Hook/SearchQueryAlterHooks.php
SearchQueryAlterHooks::querySearchNodeSearchAlter function core/modules/search/tests/modules/search_query_alter/src/Hook/SearchQueryAlterHooks.php Implements hook_query_TAG_alter().
SearchQueryAlterTest class core/modules/search/tests/src/Functional/SearchQueryAlterTest.php Tests that the node search query can be altered via the query alter hook.
SearchQueryAlterTest.php file core/modules/search/tests/src/Functional/SearchQueryAlterTest.php
SearchQueryAlterTest::$defaultTheme property core/modules/search/tests/src/Functional/SearchQueryAlterTest.php The theme to install as the default for testing.
SearchQueryAlterTest::$modules property core/modules/search/tests/src/Functional/SearchQueryAlterTest.php Modules to install.
SearchQueryAlterTest::testQueryAlter function core/modules/search/tests/src/Functional/SearchQueryAlterTest.php Tests that the query alter works.

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