Search for alter

  1. Search 7.x for alter
  2. Search 9.5.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
QueryBase::$alterTags property core/lib/Drupal/Core/Entity/Query/QueryBase.php The query tags.
QueryPluginBase::alter function core/modules/views/src/Plugin/views/query/QueryPluginBase.php Let modules modify the query just prior to finalizing it.
QuickEditIntegration::entityViewAlter function core/modules/layout_builder/src/QuickEditIntegration.php Alters the entity view build for Quick Edit compatibility.
quickedit_entity_view_alter function core/modules/quickedit/quickedit.module Implements hook_entity_view_alter().
quickedit_field_formatter_info_alter function core/modules/quickedit/quickedit.module Implements hook_field_formatter_info_alter().
quickedit_library_info_alter function core/modules/quickedit/quickedit.module Implements hook_library_info_alter().
quickedit_test_field_formatter_info_alter function core/modules/quickedit/tests/modules/quickedit_test.module Implements hook_field_formatter_info_alter().
RegistryTest::testThemeRegistryAlterByTheme function core/tests/Drupal/KernelTests/Core/Theme/RegistryTest.php Tests that the theme registry can be altered by themes.
RenderElementHelper::alterElementInfo function core/modules/inline_form_errors/src/RenderElementHelper.php Alters the element type info.
responsive_image_library_info_alter function core/modules/responsive_image/responsive_image.module Implements hook_library_info_alter().
Role::alterRouteDefinition function core/modules/user/src/Plugin/views/access/Role.php Allows access plugins to alter the route definition of a view.
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/media/tests/modules/media_test_ckeditor/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/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.
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/lib/Drupal/Core/Database/Driver/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.
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.
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 enable.
SearchQueryAlterTest::testQueryAlter function core/modules/search/tests/src/Functional/SearchQueryAlterTest.php Tests that the query alter works.
search_date_query_alter.info.yml file core/modules/search/tests/modules/search_date_query_alter/search_date_query_alter.info.yml core/modules/search/tests/modules/search_date_query_alter/search_date_query_alter.info.yml
search_date_query_alter.module file core/modules/search/tests/modules/search_date_query_alter/search_date_query_alter.module Adds date conditions to node searches.
search_date_query_alter_query_search_node_search_alter function core/modules/search/tests/modules/search_date_query_alter/search_date_query_alter.module Implements hook_query_TAG_alter(): tag search_$type with $type node_search.
search_form_search_block_form_alter function core/modules/search/search.module Implements hook_form_FORM_ID_alter() for the search_block_form form.
search_query_alter.info.yml file core/modules/search/tests/modules/search_query_alter/search_query_alter.info.yml core/modules/search/tests/modules/search_query_alter/search_query_alter.info.yml
search_query_alter.module file core/modules/search/tests/modules/search_query_alter/search_query_alter.module Test module that alters search queries.
search_query_alter_query_search_node_search_alter function core/modules/search/tests/modules/search_query_alter/search_query_alter.module Implements hook_query_TAG_alter(): tag search_$type with $type node_search.
SelectionInterface::entityQueryAlter function core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionInterface.php Allows the selection to alter the SelectQuery generated by EntityFieldQuery.
SelectionPluginBase::entityQueryAlter function core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionPluginBase.php Allows the selection to alter the SelectQuery generated by EntityFieldQuery.
serialization.user_route_alter_subscriber service core/modules/serialization/serialization.services.yml Drupal\serialization\EventSubscriber\UserRouteAlterSubscriber
ServiceModifierInterface::alter function core/lib/Drupal/Core/DependencyInjection/ServiceModifierInterface.php Modifies existing service definitions.
ServiceProviderBase::alter function core/lib/Drupal/Core/DependencyInjection/ServiceProviderBase.php Modifies existing service definitions.
ServiceProviderTestServiceProvider::alter function core/modules/system/tests/modules/service_provider_test/src/ServiceProviderTestServiceProvider.php Modifies existing service definitions.
settings_tray_block_alter function core/modules/settings_tray/settings_tray.module Implements hook_block_alter().
settings_tray_block_view_alter function core/modules/settings_tray/settings_tray.module Implements hook_block_view_alter().

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