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
AccountForm::alterPreferredLangcodeDescription function core/modules/user/src/AccountForm.php Alters the preferred language widget description.
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.php file core/tests/Drupal/KernelTests/Core/Database/AlterTest.php
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::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.
ClassWriter::alterAssert function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit8/ClassWriter.php Alters the Assert class.
ClassWriter::alterTestCase function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit8/ClassWriter.php Alters the TestCase class.
ClassWriter::flushAlteredCodeToFile function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit8/ClassWriter.php Flushes altered class code to file when necessary.
ColorSystemBrandingBlockAlter class core/modules/color/src/ColorSystemBrandingBlockAlter.php Provides a trusted callback to alter the system branding block.
ColorSystemBrandingBlockAlter.php file core/modules/color/src/ColorSystemBrandingBlockAlter.php
ColorSystemBrandingBlockAlter::preRender function core/modules/color/src/ColorSystemBrandingBlockAlter.php #pre_render callback: Sets color preset logo.
color_block_view_system_branding_block_alter function core/modules/color/color.module Implements hook_block_view_BASE_BLOCK_ID_alter().
color_form_system_theme_settings_alter function core/modules/color/color.module Implements hook_form_FORM_ID_alter().
color_library_info_alter function core/modules/color/color.module Implements hook_library_info_alter().
ConfigSchemaAlterException class core/lib/Drupal/Core/Config/Schema/ConfigSchemaAlterException.php Exception for when hook_config_schema_info_alter() adds or removes schema.
ConfigSchemaAlterException.php file core/lib/Drupal/Core/Config/Schema/ConfigSchemaAlterException.php
ConfigSchemaTest::testConfigSchemaInfoAlter function core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaTest.php Tests hook_config_schema_info_alter().
Container::getAlternatives function core/lib/Drupal/Component/DependencyInjection/Container.php Provides alternatives for a given array and key.
Container::getParameterAlternatives function core/lib/Drupal/Component/DependencyInjection/Container.php Provides alternatives in case a parameter was not found.
Container::getServiceAlternatives function core/lib/Drupal/Component/DependencyInjection/Container.php Provides alternatives in case a service was not found.
ContextualLinkManagerTest::testPluginDefinitionAlter function core/tests/Drupal/Tests/Core/Menu/ContextualLinkManagerTest.php Tests the plugins alter hook.
CoreServiceProvider::alter function core/lib/Drupal/Core/CoreServiceProvider.php Alters the UUID service to use the most efficient method available.
DefaultPluginManager::$alterHook property core/lib/Drupal/Core/Plugin/DefaultPluginManager.php Name of the alter hook if one should be invoked.
DefaultPluginManager::alterDefinitions function core/lib/Drupal/Core/Plugin/DefaultPluginManager.php Invokes the hook to alter the definitions if the alter hook is set.
DefaultPluginManager::alterInfo function core/lib/Drupal/Core/Plugin/DefaultPluginManager.php Sets the alter hook name.
DefaultPluginManagerTest::testDefaultPluginManagerWithAlter function core/tests/Drupal/Tests/Core/Plugin/DefaultPluginManagerTest.php Tests the plugin manager with no cache and altering.
DefaultSelection::reAlterQuery function core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/DefaultSelection.php Helper method: Passes a query to the alteration system again.
EntityRouteAlterSubscriber class core/lib/Drupal/Core/EventSubscriber/EntityRouteAlterSubscriber.php Registers the 'type' of route parameter names that match an entity type.
EntityRouteAlterSubscriber.php file core/lib/Drupal/Core/EventSubscriber/EntityRouteAlterSubscriber.php
EntityRouteAlterSubscriber::$resolverManager property core/lib/Drupal/Core/EventSubscriber/EntityRouteAlterSubscriber.php The entity resolver manager.
EntityRouteAlterSubscriber::getSubscribedEvents function core/lib/Drupal/Core/EventSubscriber/EntityRouteAlterSubscriber.php
EntityRouteAlterSubscriber::onRoutingRouteAlterSetType function core/lib/Drupal/Core/EventSubscriber/EntityRouteAlterSubscriber.php Applies parameter converters to route parameters.
EntityRouteAlterSubscriber::__construct function core/lib/Drupal/Core/EventSubscriber/EntityRouteAlterSubscriber.php Constructs an EntityRouteAlterSubscriber instance.
EntityViewBuilder::alterBuild function core/lib/Drupal/Core/Entity/EntityViewBuilder.php Specific per-entity building.
EntityViewHookTest::testHookEntityDisplayBuildAlter function core/tests/Drupal/KernelTests/Core/Entity/EntityViewHookTest.php Tests hook_entity_display_build_alter().

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