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
LanguageNegotiatorInterface::getNegotiationMethods function core/modules/language/src/LanguageNegotiatorInterface.php Returns the language negotiation methods enabled for a language type.
LanguageNegotiatorInterface::getPrimaryNegotiationMethod function core/modules/language/src/LanguageNegotiatorInterface.php Returns the ID of the language type's primary language negotiation method.
LanguageNegotiatorInterface::isNegotiationMethodEnabled function core/modules/language/src/LanguageNegotiatorInterface.php Checks whether a language negotiation method is enabled for a language type.
LanguageNegotiatorInterface::METHOD_ID constant core/modules/language/src/LanguageNegotiatorInterface.php The language negotiation method id for the language negotiator itself.
MediaLibraryStateTest::testMethods function core/modules/media_library/tests/src/Kernel/MediaLibraryStateTest.php Tests the media library state methods.
MenuTreeStorageTest::testBasicMethods function core/tests/Drupal/KernelTests/Core/Menu/MenuTreeStorageTest.php Tests the tree storage when no tree was built yet.
MessageEntityTest::testMessageMethods function core/modules/contact/tests/src/Kernel/MessageEntityTest.php Tests some of the methods.
MethodCallable class core/tests/Drupal/Tests/Core/Utility/CallableResolverTest.php
MethodCallable::method function core/tests/Drupal/Tests/Core/Utility/CallableResolverTest.php A test method that returns "foo".
MethodCallable::__invoke function core/tests/Drupal/Tests/Core/Utility/CallableResolverTest.php A test __invoke method.
MethodFilter class core/lib/Drupal/Core/Routing/MethodFilter.php Filters routes based on the HTTP method.
MethodFilter.php file core/lib/Drupal/Core/Routing/MethodFilter.php
MethodFilter::filter function core/lib/Drupal/Core/Routing/MethodFilter.php Filters the route collection against a request.
MethodFilterTest class core/tests/Drupal/Tests/Core/Routing/MethodFilterTest.php @coversDefaultClass \Drupal\Core\Routing\MethodFilter
@group Routing
MethodFilterTest.php file core/tests/Drupal/Tests/Core/Routing/MethodFilterTest.php
MethodFilterTest::testCollectionOrder function core/tests/Drupal/Tests/Core/Routing/MethodFilterTest.php Ensures that the incoming and outgoing collections have the same order.
MethodFilterTest::testFilteredMethods function core/tests/Drupal/Tests/Core/Routing/MethodFilterTest.php @covers ::filter
MethodFilterTest::testMethodNotAllowedException function core/tests/Drupal/Tests/Core/Routing/MethodFilterTest.php @covers ::filter
MethodFilterTest::testMethodNotAllowedExceptionWithMultipleRoutes function core/tests/Drupal/Tests/Core/Routing/MethodFilterTest.php @covers ::filter
MethodFilterTest::testWithAllowedMethod function core/tests/Drupal/Tests/Core/Routing/MethodFilterTest.php @covers ::filter
MethodFilterTest::testWithAllowedMethodAndMultipleMatchingRoutes function core/tests/Drupal/Tests/Core/Routing/MethodFilterTest.php @covers ::filter
method_filter.jsonapi service core/modules/jsonapi/jsonapi.services.yml Drupal\jsonapi\Routing\ReadOnlyModeMethodFilter
MockService::getFactoryMethod function core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php Provides a factory method to get a service.
ModuleHandlerTest::testCachedGetImplementationsMissingMethod function core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php Tests getImplementations.
NoInstantiationMockStaticCallable::staticMethod function core/tests/Drupal/Tests/Core/Utility/CallableResolverTest.php
NoMethodCallable class core/tests/Drupal/Tests/Core/Utility/CallableResolverTest.php
OptimizedPhpArrayDumper::dumpMethodCalls function core/lib/Drupal/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumper.php Dumps method calls to a PHP array.
PagerKernelTest::testSetPagerMethods function core/modules/views/tests/src/Kernel/Plugin/PagerKernelTest.php Tests pager-related setter methods on ViewExecutable.
PathPluginBase::overrideAppliesPathAndMethod function core/modules/views/src/Plugin/views/display/PathPluginBase.php Determines whether an override for the path and method should happen.
PathValidatorTest::testIsValidWithMethodNotAllowed function core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php @covers ::isValid
@covers ::getPathAttributes
plugin.manager.language_negotiation_method service core/modules/language/language.services.yml Drupal\language\LanguageNegotiationMethodManager
PrivateMethodUnitTestTrait trait core/modules/ckeditor5/tests/src/Traits/PrivateMethodUnitTestTrait.php Provides methods to test protected/private methods in unit tests.
PrivateMethodUnitTestTrait.php file core/modules/ckeditor5/tests/src/Traits/PrivateMethodUnitTestTrait.php
PrivateMethodUnitTestTrait::getMethod function core/modules/ckeditor5/tests/src/Traits/PrivateMethodUnitTestTrait.php Gets a protected/private method to test.
ProcessField::callMethodOnFieldPlugin function core/modules/field/src/Plugin/migrate/process/ProcessField.php Instantiate a field plugin and call a method on it.
ProxyBuilder::buildConstructorMethod function core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php Builds the constructor used to inject the actual service ID.
ProxyBuilder::buildLazyLoadItselfMethod function core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php Generates the string for the method which loads the actual service.
ProxyBuilder::buildMethod function core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php Generates the string representation of a single method: signature, body.
ProxyBuilder::buildMethodBody function core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php Builds the body of a wrapped method.
ProxyBuilderTest::testBuildComplexMethod function core/tests/Drupal/Tests/Core/ProxyBuilder/ProxyBuilderTest.php @covers ::buildMethod
@covers ::buildParameter
@covers ::buildMethodBody
ProxyBuilderTest::testBuildComplexMethod function core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php @covers ::buildMethod
@covers ::buildParameter
@covers ::buildMethodBody
ProxyBuilderTest::testBuildMethodWithParameter function core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php @covers ::buildMethod
@covers ::buildParameter
@covers ::buildMethodBody
ProxyBuilderTest::testBuildNoMethod function core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php Tests the basic methods like the constructor and the lazyLoadItself method.
ProxyBuilderTest::testBuildServiceMethodReturnsVoid function core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php @covers ::buildMethodBody
ProxyBuilderTest::testBuildSimpleMethod function core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php @covers ::buildMethod
@covers ::buildMethodBody
ProxyBuilderTest::testBuildWithProtectedAndPrivateMethod function core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php @covers ::buildMethod
@covers ::buildParameter
@covers ::buildMethodBody
ProxyBuilderTest::testBuildWithPublicStaticMethod function core/tests/Drupal/Tests/Component/ProxyBuilder/ProxyBuilderTest.php @covers ::buildMethod
@covers ::buildParameter
@covers ::buildMethodBody
QueryTest::queryMethodsTests function core/modules/views/tests/src/Kernel/Plugin/QueryTest.php Tests methods provided by the QueryPluginBase.
ReadOnlyModeMethodFilter class core/modules/jsonapi/src/Routing/ReadOnlyModeMethodFilter.php Filters routes based on the HTTP method and JSON:API's read-only mode.
ReadOnlyModeMethodFilter.php file core/modules/jsonapi/src/Routing/ReadOnlyModeMethodFilter.php

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