Search for method

  1. Search 7.x for method
  2. Search 9.5.x for method
  3. Search 8.9.x for method
  4. Search 10.3.x for method
  5. Other projects
Title Object type File name Summary
ActionMethod class core/lib/Drupal/Core/Config/Action/Attribute/ActionMethod.php @internal
This API is experimental.
ActionMethod.php file core/lib/Drupal/Core/Config/Action/Attribute/ActionMethod.php
ActionMethod::__construct function core/lib/Drupal/Core/Config/Action/Attribute/ActionMethod.php
ActionMethodAttributeTest class core/tests/Drupal/Tests/Core/Config/Action/ActionMethodAttributeTest.php @coversDefaultClass \Drupal\Core\Config\Action\Attribute\ActionMethod[[api-linebreak]]
@group Config
ActionMethodAttributeTest.php file core/tests/Drupal/Tests/Core/Config/Action/ActionMethodAttributeTest.php
ActionMethodAttributeTest::testInvalidFunctionName function core/tests/Drupal/Tests/Core/Config/Action/ActionMethodAttributeTest.php @covers ::__construct[[api-linebreak]]
AttributeBridgeDecoratorTest::testOtherMethod function core/tests/Drupal/Tests/Component/Plugin/Discovery/AttributeBridgeDecoratorTest.php Tests that the decorator of other methods works.
CallableResolverTest::method function core/tests/Drupal/Tests/Core/Utility/CallableResolverTest.php A test method that returns "foo".
CallableResolverTest::staticMethod function core/tests/Drupal/Tests/Core/Utility/CallableResolverTest.php A test static method that returns "foo".
CheckpointStorageTest::readMethodsProvider function core/tests/Drupal/Tests/Core/Config/Checkpoint/CheckpointStorageTest.php Provide the methods that work transparently.
CheckpointStorageTest::writeMethodsProvider function core/tests/Drupal/Tests/Core/Config/Checkpoint/CheckpointStorageTest.php Provide the methods that throw an exception.
ClassResolverConstraint::$method property core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/ClassResolverConstraint.php Method to call.
ClassResolverConstraintValidatorTest::testNonExistingMethod function core/tests/Drupal/KernelTests/Core/TypedData/ClassResolverConstraintValidatorTest.php Test missing method case.
ConfigActionsTest::testEntityMethodActions function core/modules/block/tests/src/Kernel/ConfigActionsTest.php Tests the application of entity method actions on a block.
ConfigActionTest::testDuplicatePluralizedMethodNameException function core/tests/Drupal/KernelTests/Core/Config/Action/ConfigActionTest.php
ConfigActionTest::testDuplicatePluralizedOtherMethodNameException function core/tests/Drupal/KernelTests/Core/Config/Action/ConfigActionTest.php
ConfigActionTest::testEntityMethod function core/tests/Drupal/KernelTests/Core/Config/Action/ConfigActionTest.php
ConfigActionTest::testEntityMethodException function core/tests/Drupal/KernelTests/Core/Config/Action/ConfigActionTest.php
ConfigActionTest::testPluralizedEntityMethod function core/tests/Drupal/KernelTests/Core/Config/Action/ConfigActionTest.php
ConfigActionTest::testPluralizedEntityMethodException function core/tests/Drupal/KernelTests/Core/Config/Action/ConfigActionTest.php
DeprecatedElementTest::testDeprecatedStaticMethods function core/tests/Drupal/KernelTests/Core/Render/Element/DeprecatedElementTest.php Test use of static methods trigger deprecations.
DuplicatePluralizedMethodName class core/modules/config/tests/config_test/src/ConfigActionErrorEntity/DuplicatePluralizedMethodName.php Test entity class.
DuplicatePluralizedMethodName.php file core/modules/config/tests/config_test/src/ConfigActionErrorEntity/DuplicatePluralizedMethodName.php
DuplicatePluralizedMethodName::testMethod function core/modules/config/tests/config_test/src/ConfigActionErrorEntity/DuplicatePluralizedMethodName.php #[ActionMethod(pluralize: 'testMethod')]
DuplicatePluralizedOtherMethodName class core/modules/config/tests/config_test/src/ConfigActionErrorEntity/DuplicatePluralizedOtherMethodName.php Test entity class.
DuplicatePluralizedOtherMethodName.php file core/modules/config/tests/config_test/src/ConfigActionErrorEntity/DuplicatePluralizedOtherMethodName.php
DuplicatePluralizedOtherMethodName::testMethod function core/modules/config/tests/config_test/src/ConfigActionErrorEntity/DuplicatePluralizedOtherMethodName.php #[ActionMethod(pluralize: 'testMethod2')]
DuplicatePluralizedOtherMethodName::testMethod2 function core/modules/config/tests/config_test/src/ConfigActionErrorEntity/DuplicatePluralizedOtherMethodName.php #[ActionMethod]
EntityMethod class core/lib/Drupal/Core/Config/Action/Plugin/ConfigAction/EntityMethod.php Makes config entity methods with the ActionMethod attribute into actions.
EntityMethod.php file core/lib/Drupal/Core/Config/Action/Plugin/ConfigAction/EntityMethod.php
EntityMethod::apply function core/lib/Drupal/Core/Config/Action/Plugin/ConfigAction/EntityMethod.php Applies the config action.
EntityMethod::applyPluralized function core/lib/Drupal/Core/Config/Action/Plugin/ConfigAction/EntityMethod.php Applies the action to entity treating the $values array as multiple calls.
EntityMethod::applySingle function core/lib/Drupal/Core/Config/Action/Plugin/ConfigAction/EntityMethod.php Applies the action to entity treating the $values array a single call.
EntityMethod::create function core/lib/Drupal/Core/Config/Action/Plugin/ConfigAction/EntityMethod.php Creates an instance of the plugin.
EntityMethod::__construct function core/lib/Drupal/Core/Config/Action/Plugin/ConfigAction/EntityMethod.php Constructs a EntityMethod object.
EntityMethodConfigActionsTest class core/tests/Drupal/KernelTests/Core/Recipe/EntityMethodConfigActionsTest.php @group Recipe
EntityMethodConfigActionsTest.php file core/tests/Drupal/KernelTests/Core/Recipe/EntityMethodConfigActionsTest.php
EntityMethodConfigActionsTest::$configActionManager property core/tests/Drupal/KernelTests/Core/Recipe/EntityMethodConfigActionsTest.php The configuration action manager.
EntityMethodConfigActionsTest::$modules property core/tests/Drupal/KernelTests/Core/Recipe/EntityMethodConfigActionsTest.php Modules to install.
EntityMethodConfigActionsTest::setUp function core/tests/Drupal/KernelTests/Core/Recipe/EntityMethodConfigActionsTest.php
EntityMethodConfigActionsTest::testRemoveComponentFromDisplay function core/tests/Drupal/KernelTests/Core/Recipe/EntityMethodConfigActionsTest.php @testWith ["hideComponent"][[api-linebreak]]
["hideComponents"][[api-linebreak]]
[[api-linebreak]]
EntityMethodConfigActionsTest::testSet function core/tests/Drupal/KernelTests/Core/Recipe/EntityMethodConfigActionsTest.php @testWith ["set", {"property_name": "protected_property", "value": "Here be sandworms..."}][[api-linebreak]]
["setMultiple", [{"property_name": "protected_property",…
EntityMethodConfigActionsTest::testSetMultipleThirdPartySettings function core/tests/Drupal/KernelTests/Core/Recipe/EntityMethodConfigActionsTest.php Tests setting multiple third party settings.
EntityMethodConfigActionsTest::testSetNestedProperty function core/tests/Drupal/KernelTests/Core/Recipe/EntityMethodConfigActionsTest.php Test setting a nested property on a config entity.
EntityMethodConfigActionsTest::testSetPropertiesWillNotChangeEntityKeys function core/tests/Drupal/KernelTests/Core/Recipe/EntityMethodConfigActionsTest.php Tests that the setProperties action refuses to modify entity IDs or UUIDs.
EntityMethodConfigActionsTest::testSetSingleThirdPartySetting function core/tests/Drupal/KernelTests/Core/Recipe/EntityMethodConfigActionsTest.php @covers \Drupal\Core\Config\Entity\ConfigEntityBase::getThirdPartySetting
EntityMethodConfigActionsTest::testSetStatus function core/tests/Drupal/KernelTests/Core/Recipe/EntityMethodConfigActionsTest.php @testWith [true, "setStatus", false, false][[api-linebreak]]
[false, "setStatus", true, true][[api-linebreak]]
[true, "disable", [], false][[api-linebreak]]
[false, "enable", [],…
EntityMethodConfigActionsTest::testSimpleConfigUpdateFailsOnEntities function core/tests/Drupal/KernelTests/Core/Recipe/EntityMethodConfigActionsTest.php Tests that the simpleConfigUpdate action cannot be used on entities.
EntityMethodDeriver class core/lib/Drupal/Core/Config/Action/Plugin/ConfigAction/Deriver/EntityMethodDeriver.php Derives config action methods from attributed config entity methods.
EntityMethodDeriver.php file core/lib/Drupal/Core/Config/Action/Plugin/ConfigAction/Deriver/EntityMethodDeriver.php

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