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
TestClassMethodMetadataTest class core/tests/PHPStan/tests/TestClassMethodMetadataTest.php Tests TestClassMethodMetadata rule.
TestClassMethodMetadataTest.php file core/tests/PHPStan/tests/TestClassMethodMetadataTest.php
TestClassMethodMetadataTest::getRule function core/tests/PHPStan/tests/TestClassMethodMetadataTest.php
TestClassMethodMetadataTest::testRule function core/tests/PHPStan/tests/TestClassMethodMetadataTest.php
TestController::testMethod function core/modules/system/tests/modules/csrf_test/src/Controller/TestController.php Just a test method for the test routes.
TestController::testMethod function core/modules/system/tests/modules/csrf_race_test/src/Controller/TestController.php Helper page to load jQuery in test.
TestHookAfterClassMethod class core/modules/system/tests/modules/HookCollector/aaa_hook_collector_test/src/Hook/TestHookAfterClassMethod.php This class contains hook implementations.
TestHookAfterClassMethod class core/modules/system/tests/modules/HookCollector/bbb_hook_collector_test/src/Hook/TestHookAfterClassMethod.php This class contains hook implementations.
TestHookAfterClassMethod.php file core/modules/system/tests/modules/HookCollector/aaa_hook_collector_test/src/Hook/TestHookAfterClassMethod.php
TestHookAfterClassMethod.php file core/modules/system/tests/modules/HookCollector/bbb_hook_collector_test/src/Hook/TestHookAfterClassMethod.php
TestHookAfterClassMethod::hookAfterClassMethod function core/modules/system/tests/modules/HookCollector/aaa_hook_collector_test/src/Hook/TestHookAfterClassMethod.php This pair tests OrderAfter with a passed class and method.
TestHookAfterClassMethod::hookAfterClassMethod function core/modules/system/tests/modules/HookCollector/bbb_hook_collector_test/src/Hook/TestHookAfterClassMethod.php This pair tests OrderAfter with a passed class and method.
TestHookClass::someMethod function core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php Example method.
TestInterface::testMethod function core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php
TestLocalTaskController::methodWithoutUpcastNode function core/modules/content_moderation/tests/modules/content_moderation_test_local_task/src/Controller/TestLocalTaskController.php A method which does not hint the node parameter to avoid upcasting.
TestServiceComplexMethod class core/tests/Drupal/Tests/Core/ProxyBuilder/ProxyBuilderTest.php Call used to test a service with a complex method.
TestServiceComplexMethod class core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php Test service with complex method.
TestServiceComplexMethod::complexMethod function core/tests/Drupal/Tests/Core/ProxyBuilder/ProxyBuilderTest.php
TestServiceComplexMethod::complexMethod function core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php
TestServiceMethodReturnsVoid class core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php Test service with void returning method.
TestServiceMethodReturnsVoid::methodReturnsVoid function core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php
TestServiceMethodWithParameter class core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php Test service with method without parameter.
TestServiceMethodWithParameter::methodWithParameter function core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php
TestServiceNoMethod class core/tests/Drupal/Tests/Core/ProxyBuilder/ProxyBuilderTest.php Class used to test a service that has no methods.
TestServiceNoMethod class core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php Test service without methods.
TestServiceSimpleMethod class core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php Test service with simple method.
TestServiceSimpleMethod::method function core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php
TestServiceWithInterface::testMethod function core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php
TestServiceWithProtectedMethods class core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php Test service with protected methods.
TestServiceWithProtectedMethods::privateMethod function core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php
TestServiceWithProtectedMethods::protectedMethod function core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php
TestServiceWithProtectedMethods::testMethod function core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php
TestServiceWithPublicStaticMethod class core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php Test service with public static method.
TestServiceWithPublicStaticMethod::testMethod function core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php
TestStaticMethodClass class core/tests/Drupal/Tests/Component/Utility/ArgumentsResolverTest.php Provides a class for testing a static method.
TestStaticMethodClass::access function core/tests/Drupal/Tests/Component/Utility/ArgumentsResolverTest.php
TrustedMethods class core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php Test class with implemented trusted callbacks.
TrustedMethods::attributeCallback function core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php #[TrustedCallback]
TrustedMethods::callback function core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php
TrustedMethods::trustedCallbacks function core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php Lists the trusted callbacks provided by the implementing class.
TrustedMethods::unTrustedCallback function core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php
TwigSandboxPolicy::$allowed_methods property core/lib/Drupal/Core/Template/TwigSandboxPolicy.php An array of allowed methods in the form of methodName => TRUE.
TwigSandboxPolicy::checkMethodAllowed function core/lib/Drupal/Core/Template/TwigSandboxPolicy.php
TwigSandboxPolicy::getMethodsAllowedOnAllObjects function core/lib/Drupal/Core/Template/TwigSandboxPolicy.php Gets the list of allowed methods on all objects.
TwigSandboxTest::getTwigEntityDangerousMethods function core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php Data provider for ::testEntityDangerousMethods.
TwigSandboxTest::testEntityDangerousMethods function core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php Tests that dangerous methods cannot be called in entity objects.
TwigSandboxTest::testEntitySafeMethods function core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php Tests that valid methods can be called from within Twig templates.
TwigSandboxTest::testTwigMethodAttributeAllowed function core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php Tests that method with TwigAllowed attribute is allowed.
TwigSandboxTest::testTwigMethodAttributeNotAllowed function core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php Tests that method without TwigAllowed attribute is not allowed.
TwigSandboxTest::testUrlSafeMethods function core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php Tests that safe methods inside Url objects can be called.

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