Search for factory

  1. Search 7.x for factory
  2. Search 9.5.x for factory
  3. Search 8.9.x for factory
  4. Search 11.x for factory
  5. Other projects
Title Object type File name Summary
LanguageConfigFactoryOverrideInterface::setLanguage function core/modules/language/src/Config/LanguageConfigFactoryOverrideInterface.php Sets the language to be used in configuration overrides.
LanguageConfigFactoryOverrideTest class core/modules/language/tests/src/Kernel/LanguageConfigFactoryOverrideTest.php Tests \Drupal\language\Config\LanguageConfigFactoryOverride.
LanguageConfigFactoryOverrideTest.php file core/modules/language/tests/src/Kernel/LanguageConfigFactoryOverrideTest.php
LanguageConfigFactoryOverrideTest::$modules property core/modules/language/tests/src/Kernel/LanguageConfigFactoryOverrideTest.php Modules to install.
LanguageConfigFactoryOverrideTest::testLanguageConfigFactoryOverride function core/modules/language/tests/src/Kernel/LanguageConfigFactoryOverrideTest.php Tests language.config_factory_override service has the default language.
LanguageListBuilder::$configFactory property core/modules/language/src/LanguageListBuilder.php The configuration factory.
LanguageNegotiator::$configFactory property core/modules/language/src/LanguageNegotiator.php The configuration factory.
LayoutBuilderSampleEntityGenerator::$tempStoreFactory property core/modules/layout_builder/src/Entity/LayoutBuilderSampleEntityGenerator.php The shared tempstore factory.
LayoutTempstoreRepository::$tempStoreFactory property core/modules/layout_builder/src/LayoutTempstoreRepository.php The shared tempstore factory.
Local::factory function core/lib/Drupal/Core/FileTransfer/Local.php Defines a factory method for this class.
LocalActionManagerTest::$factory property core/tests/Drupal/Tests/Core/Menu/LocalActionManagerTest.php The mocked factory.
LocaleConfigManager::$configFactory property core/modules/locale/src/LocaleConfigManager.php The configuration factory.
LocaleConfigSubscriber::$configFactory property core/modules/locale/src/LocaleConfigSubscriber.php The configuration factory.
LocaleConfigSubscriberTest::$configFactory property core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php The configuration factory used in this test.
LocaleLookup::$configFactory property core/modules/locale/src/LocaleLookup.php The configuration factory.
LocaleLookupTest::$configFactory property core/modules/locale/tests/src/Unit/LocaleLookupTest.php A mocked config factory built with UnitTestCase::getConfigFactoryStub().
LocaleProjectStorageTest::$keyValueMemoryFactory property core/modules/locale/tests/src/Unit/LocaleProjectStorageTest.php
LocaleTranslation::$configFactory property core/modules/locale/src/LocaleTranslation.php The configuration factory.
LocalTaskManagerTest::$factory property core/tests/Drupal/Tests/Core/Menu/LocalTaskManagerTest.php The plugin factory used in the test.
LocalTaskManagerTest::setupFactory function core/tests/Drupal/Tests/Core/Menu/LocalTaskManagerTest.php Setups the plugin factory with some local task plugins.
LocalTaskManagerTest::setupFactoryAndLocalTaskPlugins function core/tests/Drupal/Tests/Core/Menu/LocalTaskManagerTest.php
logger.factory service core/core.services.yml Drupal\Core\Logger\LoggerChannelFactory
LoggerChannelFactory class core/lib/Drupal/Core/Logger/LoggerChannelFactory.php Defines a factory for logging channels.
LoggerChannelFactory.php file core/lib/Drupal/Core/Logger/LoggerChannelFactory.php
LoggerChannelFactory::$channels property core/lib/Drupal/Core/Logger/LoggerChannelFactory.php Array of all instantiated logger channels keyed by channel name.
LoggerChannelFactory::$currentUser property core/lib/Drupal/Core/Logger/LoggerChannelFactory.php The current user.
LoggerChannelFactory::$loggers property core/lib/Drupal/Core/Logger/LoggerChannelFactory.php An array of arrays of \Psr\Log\LoggerInterface keyed by priority.
LoggerChannelFactory::$requestStack property core/lib/Drupal/Core/Logger/LoggerChannelFactory.php The request stack.
LoggerChannelFactory::addLogger function core/lib/Drupal/Core/Logger/LoggerChannelFactory.php Adds a logger to all the channels.
LoggerChannelFactory::get function core/lib/Drupal/Core/Logger/LoggerChannelFactory.php Retrieves the registered logger for the requested channel.
LoggerChannelFactory::setContainer function core/lib/Drupal/Core/Logger/LoggerChannelFactory.php Sets the service container.
LoggerChannelFactory::__construct function core/lib/Drupal/Core/Logger/LoggerChannelFactory.php Constructs a LoggerChannelFactory.
LoggerChannelFactory::__get function core/lib/Drupal/Core/Logger/LoggerChannelFactory.php
LoggerChannelFactoryInterface interface core/lib/Drupal/Core/Logger/LoggerChannelFactoryInterface.php Logger channel factory interface.
LoggerChannelFactoryInterface.php file core/lib/Drupal/Core/Logger/LoggerChannelFactoryInterface.php
LoggerChannelFactoryInterface::addLogger function core/lib/Drupal/Core/Logger/LoggerChannelFactoryInterface.php Adds a logger to all the channels.
LoggerChannelFactoryInterface::get function core/lib/Drupal/Core/Logger/LoggerChannelFactoryInterface.php Retrieves the registered logger for the requested channel.
LoggerChannelFactoryTest class core/tests/Drupal/Tests/Core/Logger/LoggerChannelFactoryTest.php @coversDefaultClass \Drupal\Core\Logger\LoggerChannelFactory[[api-linebreak]]
@group Logger
LoggerChannelFactoryTest.php file core/tests/Drupal/Tests/Core/Logger/LoggerChannelFactoryTest.php
LoggerChannelFactoryTest::testConstructorDeprecation function core/tests/Drupal/Tests/Core/Logger/LoggerChannelFactoryTest.php @covers ::__construct[[api-linebreak]]
@group legacy
LoggerChannelFactoryTest::testDeprecatedGetContainer function core/tests/Drupal/Tests/Core/Logger/LoggerChannelFactoryTest.php @covers ::__get[[api-linebreak]]
@group legacy
LoggerChannelFactoryTest::testDeprecatedSetContainer function core/tests/Drupal/Tests/Core/Logger/LoggerChannelFactoryTest.php @covers ::setContainer[[api-linebreak]]
@group legacy
LoggerChannelFactoryTest::testGet function core/tests/Drupal/Tests/Core/Logger/LoggerChannelFactoryTest.php Tests LoggerChannelFactory::get().
LoggerChannelFactoryTest::testWithoutConstructor function core/tests/Drupal/Tests/Core/Logger/LoggerChannelFactoryTest.php @covers ::get[[api-linebreak]]
@group legacy
LoggerChannelTrait::$loggerFactory property core/lib/Drupal/Core/Logger/LoggerChannelTrait.php The logger channel factory service.
LoggerChannelTrait::setLoggerFactory function core/lib/Drupal/Core/Logger/LoggerChannelTrait.php Injects the logger channel factory.
MailManager::$configFactory property core/lib/Drupal/Core/Mail/MailManager.php The config factory.
MailManager::$loggerFactory property core/lib/Drupal/Core/Mail/MailManager.php The logger factory.
MailManagerTest::$configFactory property core/tests/Drupal/Tests/Core/Mail/MailManagerTest.php The configuration factory.
MarkupInterfaceComparatorTest::$factory property core/tests/Drupal/KernelTests/Core/Test/Comparator/MarkupInterfaceComparatorTest.php

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