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. Other projects
Title Object type File name Summary
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
AlterContentMiddleware class core/modules/system/tests/modules/http_middleware_test/src/StackMiddleware/AlterContentMiddleware.php Alters the response before content length is calculated.
AlterContentMiddleware.php file core/modules/system/tests/modules/http_middleware_test/src/StackMiddleware/AlterContentMiddleware.php
AlterContentMiddleware::handle function core/modules/system/tests/modules/http_middleware_test/src/StackMiddleware/AlterContentMiddleware.php
AlterContentMiddleware::__construct function core/modules/system/tests/modules/http_middleware_test/src/StackMiddleware/AlterContentMiddleware.php
AlterTest class core/modules/system/tests/src/Kernel/Common/AlterTest.php Tests alteration of arguments passed to \Drupal::moduleHandler->alter().
AlterTest.php file core/modules/system/tests/src/Kernel/Common/AlterTest.php
AlterTest::$modules property core/modules/system/tests/src/Kernel/Common/AlterTest.php Modules to install.
AlterTest::testDrupalAlter function core/modules/system/tests/src/Kernel/Common/AlterTest.php Tests if the theme has been altered.
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.
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.
ComponentPluginManager::alterDefinition function core/lib/Drupal/Core/Theme/ComponentPluginManager.php Alters the plugin definition with computed properties.
ComponentPluginManager::alterDefinitions function core/lib/Drupal/Core/Theme/ComponentPluginManager.php Invokes the hook to alter the definitions if the alter hook is set.
ComponentRenderTest::checkRenderElementAlters function core/tests/Drupal/KernelTests/Components/ComponentRenderTest.php Ensures the alter callbacks work properly.
ConfigActionManager::alterDefinitions function core/lib/Drupal/Core/Config/Action/ConfigActionManager.php Invokes the hook to alter the definitions if the alter hook is set.
ContactTest::testLocalTasksAlter function core/modules/contact/tests/src/Unit/ContactTest.php Test contact_menu_local_tasks_alter doesn't throw warnings.
core.entity_view_mode.entity_test.vm_alter_full.yml file core/modules/system/tests/modules/entity_test/config/install/core.entity_view_mode.entity_test.vm_alter_full.yml core/modules/system/tests/modules/entity_test/config/install/core.entity_view_mode.entity_test.vm_alter_full.yml
core.entity_view_mode.entity_test.vm_alter_test.yml file core/modules/system/tests/modules/entity_test/config/install/core.entity_view_mode.entity_test.vm_alter_test.yml core/modules/system/tests/modules/entity_test/config/install/core.entity_view_mode.entity_test.vm_alter_test.yml
CountryManagerTest::testHookCountriesAlter function core/tests/Drupal/KernelTests/Core/Locale/CountryManagerTest.php Tests that hook_countries_alters() works as expected.
Drupal\user_route_alter_test\Routing\RouteSubscriber service core/modules/serialization/tests/modules/user_route_alter_test/user_route_alter_test.services.yml
EntityViewAlterTest class core/modules/layout_builder/tests/src/Kernel/EntityViewAlterTest.php @covers layout_builder_entity_view_alter[[api-linebreak]]
EntityViewAlterTest.php file core/modules/layout_builder/tests/src/Kernel/EntityViewAlterTest.php
EntityViewAlterTest::$modules property core/modules/layout_builder/tests/src/Kernel/EntityViewAlterTest.php Modules to install.
EntityViewAlterTest::setUp function core/modules/layout_builder/tests/src/Kernel/EntityViewAlterTest.php
EntityViewAlterTest::testContextualLinksRemoved function core/modules/layout_builder/tests/src/Kernel/EntityViewAlterTest.php Tests that contextual links are removed when rendering Layout Builder.
FieldTypeCategoryManager::alterDefinitions function core/lib/Drupal/Core/Field/FieldTypeCategoryManager.php Invokes the hook to alter the definitions if the alter hook is set.
hook_link_alter function core/lib/Drupal/Core/Utility/link.api.php Alter the parameters for links.
http_middleware.alter_content_middleware service core/modules/system/tests/modules/http_middleware_test/http_middleware_test.services.yml Drupal\http_middleware_test\StackMiddleware\AlterContentMiddleware
LayoutBuilderBlocksTest::testLayoutBuilderChooseBlocksAlter function core/modules/layout_builder/tests/src/Functional/LayoutBuilderBlocksTest.php
LayoutBuilderOverridesTest::testOverridesFormAlter function core/modules/layout_builder/tests/src/Functional/LayoutBuilderOverridesTest.php Tests a custom alter of the overrides form.
MenuLinksetRoutes::alterRoutes function core/modules/system/src/Routing/MenuLinksetRoutes.php Alter routes.
MigrateDrupalUiRouteSubscriber::alterRoutes function core/modules/migrate_drupal_ui/src/Routing/MigrateDrupalUiRouteSubscriber.php Alters existing routes for a specific collection.
ModerationStateTaxonomyTermTest::testEnforceRevisionsEntityFormAlter function core/modules/content_moderation/tests/src/Functional/ModerationStateTaxonomyTermTest.php Tests the taxonomy term moderation handler alters the forms as intended.
MultipleWidgetFormTest::testFieldFormMultipleWidgetAlter function core/modules/field/tests/src/Functional/MultipleWidgetFormTest.php Tests hook_field_widget_complete_form_alter().
MultipleWidgetFormTest::testFieldFormMultipleWidgetAlterSingleValues function core/modules/field/tests/src/Functional/MultipleWidgetFormTest.php Tests hook_field_widget_complete_form_alter() with single value elements.
MultipleWidgetFormTest::testFieldFormMultipleWidgetTypeAlter function core/modules/field/tests/src/Functional/MultipleWidgetFormTest.php Tests hook_field_widget_complete_WIDGET_TYPE_form_alter().
MultipleWidgetFormTest::testFieldFormMultipleWidgetTypeAlterSingleValues function core/modules/field/tests/src/Functional/MultipleWidgetFormTest.php Tests hook_field_widget_complete_WIDGET_TYPE_form_alter() with single value elements.

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