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 11.x for _alter
  5. Search main for _alter
  6. 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.
AccessPolicyBase::alterPermissions function core/lib/Drupal/Core/Session/AccessPolicyBase.php Alter the permissions after all policies have finished building them.
AccessPolicyInterface::alterPermissions function core/lib/Drupal/Core/Session/AccessPolicyInterface.php Alter the permissions after all policies have finished building them.
AccessPolicyProcessorTest::testAlterPermissions function core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php Tests that access policies can alter the final result.
AccessPolicyProcessorTest::testAlterPermissionsNoApply function core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php Tests that alters that do not apply are not processed.
AccessPolicyProcessorTest::testMultipleScopeAlterException function core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php Tests the multiple scopes exception.
AccessRouteAlterSubscriber class core/modules/system/src/EventSubscriber/AccessRouteAlterSubscriber.php Alters routes to add necessary requirements.
AccessRouteAlterSubscriber.php file core/modules/system/src/EventSubscriber/AccessRouteAlterSubscriber.php
AccessRouteAlterSubscriber::accessAdminMenuBlockPage function core/modules/system/src/EventSubscriber/AccessRouteAlterSubscriber.php Adds _access_admin_menu_block_page requirement to routes pointing to SystemController::systemAdminMenuBlockPage.
AccessRouteAlterSubscriber::getSubscribedEvents function core/modules/system/src/EventSubscriber/AccessRouteAlterSubscriber.php
AccountForm::alterPreferredLangcodeDescription function core/modules/user/src/AccountForm.php Alters the preferred language widget description.
action_migration_plugins_alter function core/modules/action/action.module Implements hook_migration_plugins_alter().
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[[api-linebreak]]
@covers ::isHtmlRoute[[api-linebreak]]
advisory_feed_test_system_info_alter function core/modules/system/tests/modules/advisory_feed_test/advisory_feed_test.module Implements hook_system_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.
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/Kernel/Common/AlterTest.php Tests if the theme has been altered.
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.
AlwaysAltersAccessPolicy class core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php
AlwaysAltersAccessPolicy::alterPermissions function core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php Alter the permissions after all policies have finished building them.
AlwaysAltersAccessPolicy::applies function core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php Checks whether this access policy applies to a given scope.
AlwaysAltersAccessPolicy::getPersistentCacheContexts function core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php Gets the persistent cache contexts.
announcements_feed_toolbar_alter function core/modules/announcements_feed/announcements_feed.module Implements hook_toolbar_alter().
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.
BarAlterAccessPolicy class core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php
BarAlterAccessPolicy::alterPermissions function core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php Alter the permissions after all policies have finished building them.
BarAlterAccessPolicy::applies function core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php Checks whether this access policy applies to a given scope.
big_pipe_bypass_js_library_info_alter function core/modules/big_pipe/tests/modules/big_pipe_bypass_js/big_pipe_bypass_js.module Implements hook_library_info_alter().
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.
BlockHookOperationTest::testBlockOperationAlter function core/modules/block/tests/src/Functional/BlockHookOperationTest.php Tests the block list to see if the test_operation link is added.
BlockRenderAlterContent class core/modules/block/tests/modules/block_test/src/BlockRenderAlterContent.php Implements a trusted preRender callback.
BlockRenderAlterContent.php file core/modules/block/tests/modules/block_test/src/BlockRenderAlterContent.php
BlockRenderAlterContent::preRender function core/modules/block/tests/modules/block_test/src/BlockRenderAlterContent.php #pre_render callback for a block to alter its content.
BlockViewBuilderTest::testBlockViewBuilderBuildAlter function core/modules/block/tests/src/Kernel/BlockViewBuilderTest.php Tests block build altering.
BlockViewBuilderTest::testBlockViewBuilderViewAlter function core/modules/block/tests/src/Kernel/BlockViewBuilderTest.php Tests block view altering.
block_block_build_local_actions_block_alter function core/modules/block/block.module Implements hook_block_build_BASE_BLOCK_ID_alter().
block_content_entity_type_alter function core/modules/block_content/block_content.module Implements hook_entity_type_alter().
block_content_query_entity_reference_alter function core/modules/block_content/block_content.module Implements hook_query_TAG_alter().

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