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 11.x for method
  5. Other projects
Title Object type File name Summary
LanguageNegotiator::$methods property core/modules/language/src/LanguageNegotiator.php Local cache for language negotiation method instances.
LanguageNegotiator::getNegotiationMethodInstance function core/modules/language/src/LanguageNegotiator.php
LanguageNegotiator::getNegotiationMethods function core/modules/language/src/LanguageNegotiator.php
LanguageNegotiator::getPrimaryNegotiationMethod function core/modules/language/src/LanguageNegotiator.php
LanguageNegotiator::isNegotiationMethodEnabled function core/modules/language/src/LanguageNegotiator.php
LanguageNegotiatorInterface::getNegotiationMethodInstance function core/modules/language/src/LanguageNegotiatorInterface.php Returns an instance of the specified language negotiation method.
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.
LinkCollectionNormalizer::hasCacheableSupportsMethod function core/modules/jsonapi/src/Normalizer/LinkCollectionNormalizer.php
MarkupNormalizer::hasCacheableSupportsMethod function core/modules/serialization/src/Normalizer/MarkupNormalizer.php
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.
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
MethodRequires class core/tests/Drupal/BuildTests/Framework/Tests/ExternalCommandRequirementTest.php
MethodRequires::externalCommandIsAvailable function core/tests/Drupal/BuildTests/Framework/Tests/ExternalCommandRequirementTest.php Determine if an external command is available.
MethodRequires::testRequiresAvailable function core/tests/Drupal/BuildTests/Framework/Tests/ExternalCommandRequirementTest.php @requires externalCommand available_command
MethodRequires::testRequiresUnavailable function core/tests/Drupal/BuildTests/Framework/Tests/ExternalCommandRequirementTest.php @requires externalCommand unavailable_command
method_filter service core/core.services.yml Drupal\Core\Routing\MethodFilter
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
NormalizerBase::hasCacheableSupportsMethod function core/modules/serialization/src/Normalizer/NormalizerBase.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
PrimitiveDataNormalizer::hasCacheableSupportsMethod function core/modules/serialization/src/Normalizer/PrimitiveDataNormalizer.php
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.

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