Search for factory

  1. Search 7.x for factory
  2. Search 9.5.x for factory
  3. Search 10.3.x for factory
  4. Search 11.x for factory
  5. Other projects
Title Object type File name Summary
DefaultFactory.php file core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php
DefaultFactory::$discovery property core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php The object that retrieves the definitions of the plugins that this factory instantiates.
DefaultFactory::$interface property core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php Defines an interface each plugin should implement.
DefaultFactory::createInstance function core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php
DefaultFactory::getPluginClass function core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php Finds the class relevant for a given plugin.
DefaultFactory::__construct function core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php Constructs a Drupal\Component\Plugin\Factory\DefaultFactory object.
DefaultFactoryTest class core/tests/Drupal/Tests/Component/Plugin/DefaultFactoryTest.php @coversDefaultClass \Drupal\Component\Plugin\Factory\DefaultFactory[[api-linebreak]]
@group Plugin
DefaultFactoryTest.php file core/tests/Drupal/Tests/Component/Plugin/DefaultFactoryTest.php
DefaultFactoryTest::testGetPluginClassWithInterfaceAndInvalidClassWithArrayPluginDefinition function core/tests/Drupal/Tests/Component/Plugin/DefaultFactoryTest.php Tests getPluginClass() with a required interface but no implementation.
DefaultFactoryTest::testGetPluginClassWithInterfaceAndInvalidClassWithObjectPluginDefinition function core/tests/Drupal/Tests/Component/Plugin/DefaultFactoryTest.php Tests getPluginClass() with a required interface but no implementation.
DefaultFactoryTest::testGetPluginClassWithInterfaceWithArrayPluginDefinition function core/tests/Drupal/Tests/Component/Plugin/DefaultFactoryTest.php Tests getPluginClass() with a required interface.
DefaultFactoryTest::testGetPluginClassWithInterfaceWithObjectPluginDefinition function core/tests/Drupal/Tests/Component/Plugin/DefaultFactoryTest.php Tests getPluginClass() with a required interface.
DefaultFactoryTest::testGetPluginClassWithMissingClassWithArrayPluginDefinition function core/tests/Drupal/Tests/Component/Plugin/DefaultFactoryTest.php Tests getPluginClass() with a missing class definition.
DefaultFactoryTest::testGetPluginClassWithMissingClassWithObjectPluginDefinition function core/tests/Drupal/Tests/Component/Plugin/DefaultFactoryTest.php Tests getPluginClass() with a missing class definition.
DefaultFactoryTest::testGetPluginClassWithNotExistingClassWithArrayPluginDefinition function core/tests/Drupal/Tests/Component/Plugin/DefaultFactoryTest.php Tests getPluginClass() with a not existing class definition.
DefaultFactoryTest::testGetPluginClassWithNotExistingClassWithObjectPluginDefinition function core/tests/Drupal/Tests/Component/Plugin/DefaultFactoryTest.php Tests getPluginClass() with a not existing class definition.
DefaultFactoryTest::testGetPluginClassWithValidArrayPluginDefinition function core/tests/Drupal/Tests/Component/Plugin/DefaultFactoryTest.php Tests getPluginClass() with a valid array plugin definition.
DefaultFactoryTest::testGetPluginClassWithValidObjectPluginDefinition function core/tests/Drupal/Tests/Component/Plugin/DefaultFactoryTest.php Tests getPluginClass() with a valid object plugin definition.
DefaultFetcher::$httpClientFactory property core/modules/aggregator/src/Plugin/aggregator/fetcher/DefaultFetcher.php The HTTP client to fetch the feed data with.
DefaultNegotiator::$configFactory property core/lib/Drupal/Core/Theme/DefaultNegotiator.php The system theme config object.
DefaultPluginManager::getFactory function core/lib/Drupal/Core/Plugin/DefaultPluginManager.php
DefaultProcessor::$configFactory property core/modules/aggregator/src/Plugin/aggregator/processor/DefaultProcessor.php Contains the configuration object factory.
Drupal::configFactory function core/lib/Drupal.php Retrieves the configuration factory.
EditorConfigTranslationSubscriber::$configFactory property core/modules/editor/src/EventSubscriber/EditorConfigTranslationSubscriber.php The config factory.
EntityConfigBase::$configFactory property core/modules/migrate/src/Plugin/migrate/destination/EntityConfigBase.php The configuration factory.
EntityFieldManager::$keyValueFactory property core/lib/Drupal/Core/Entity/EntityFieldManager.php The key-value factory.
EntityFieldManagerTest::$keyValueFactory property core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php The keyvalue factory.
EntityLastInstalledSchemaRepository::$keyValueFactory property core/lib/Drupal/Core/Entity/EntityLastInstalledSchemaRepository.php The key-value factory.
EntityReferenceEntityFormatter::$loggerFactory property core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/EntityReferenceEntityFormatter.php The logger factory.
EntityResource::$configFactory property core/modules/rest/src/Plugin/rest/resource/EntityResource.php The config factory.
EnvironmentCleanerFactory class core/modules/simpletest/src/EnvironmentCleanerFactory.php Test environment cleaner factory.
EnvironmentCleanerFactory.php file core/modules/simpletest/src/EnvironmentCleanerFactory.php
EnvironmentCleanerFactory::$container property core/modules/simpletest/src/EnvironmentCleanerFactory.php The container.
EnvironmentCleanerFactory::createCleaner function core/modules/simpletest/src/EnvironmentCleanerFactory.php Factory method to create the environment cleaner service.
EnvironmentCleanerFactory::__construct function core/modules/simpletest/src/EnvironmentCleanerFactory.php Construct an environment cleaner factory.
EnvironmentCleanerService::$configFactory property core/modules/simpletest/src/EnvironmentCleanerService.php The config factory.
environment_cleaner_factory service core/modules/simpletest/simpletest.services.yml Drupal\simpletest\EnvironmentCleanerFactory
ExecutionContext::getMetadataFactory function core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php
ExecutionContextFactory class core/lib/Drupal/Core/TypedData/Validation/ExecutionContextFactory.php Defines an execution factory for the Typed Data validator.
ExecutionContextFactory.php file core/lib/Drupal/Core/TypedData/Validation/ExecutionContextFactory.php
ExecutionContextFactory::$translationDomain property core/lib/Drupal/Core/TypedData/Validation/ExecutionContextFactory.php
ExecutionContextFactory::$translator property core/lib/Drupal/Core/TypedData/Validation/ExecutionContextFactory.php
ExecutionContextFactory::createContext function core/lib/Drupal/Core/TypedData/Validation/ExecutionContextFactory.php
ExecutionContextFactory::__construct function core/lib/Drupal/Core/TypedData/Validation/ExecutionContextFactory.php Constructs a new ExecutionContextFactory instance.
FactoryInterface interface core/lib/Drupal/Component/Plugin/Factory/FactoryInterface.php Factory interface implemented by all plugin factories.
FactoryInterface.php file core/lib/Drupal/Component/Plugin/Factory/FactoryInterface.php
FactoryInterface::createInstance function core/lib/Drupal/Component/Plugin/Factory/FactoryInterface.php Creates a pre-configured instance of a plugin.
FactoryTest class core/tests/Drupal/KernelTests/Core/Plugin/FactoryTest.php Tests that plugins are correctly instantiated.
FactoryTest.php file core/tests/Drupal/KernelTests/Core/Plugin/FactoryTest.php
FactoryTest::$modules property core/tests/Drupal/KernelTests/Core/Plugin/FactoryTest.php Modules to enable.

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