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 10.3.x for factory
  5. Other projects
Title Object type File name Summary
SystemMenuOffCanvasForm::$configFactory property core/modules/system/src/Form/SystemMenuOffCanvasForm.php The config factory.
TestConfigFactoryOverrideBase class core/tests/Drupal/Tests/Core/Config/ConfigFactoryOverrideBaseTest.php Stub class for testing ConfigFactoryOverrideBase.
TestConfigFactoryOverrideBase::addCollections function core/tests/Drupal/Tests/Core/Config/ConfigFactoryOverrideBaseTest.php Reacts to the ConfigCollectionEvents::COLLECTION_INFO event.
TestConfigFactoryOverrideBase::doFilterNestedArray function core/tests/Drupal/Tests/Core/Config/ConfigFactoryOverrideBaseTest.php
TestConfigFactoryOverrideBase::onConfigDelete function core/tests/Drupal/Tests/Core/Config/ConfigFactoryOverrideBaseTest.php Actions to be performed to configuration override on configuration delete.
TestConfigFactoryOverrideBase::onConfigRename function core/tests/Drupal/Tests/Core/Config/ConfigFactoryOverrideBaseTest.php Actions to be performed to configuration override on configuration rename.
TestConfigFactoryOverrideBase::onConfigSave function core/tests/Drupal/Tests/Core/Config/ConfigFactoryOverrideBaseTest.php Actions to be performed to configuration override on configuration save.
TestConfigNamesMapper::setConfigFactory function core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php Sets the configuration factory.
TestFileTransfer::factory function core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php Factory method to create a TestFileTransfer instance.
TestFileTransferWithSettingsForm::factory function core/modules/update/tests/modules/update_test/src/TestFileTransferWithSettingsForm.php Returns a Drupal\update_test\TestFileTransferWithSettingsForm object.
TextFormat::configFactory function core/modules/filter/src/Element/TextFormat.php Wraps the config factory.
ThemeExtensionList::$configFactory property core/lib/Drupal/Core/Extension/ThemeExtensionList.php The config factory.
ThemeHandler::$configFactory property core/lib/Drupal/Core/Extension/ThemeHandler.php The config factory to get the installed themes.
ThemeHandlerTest::$configFactory property core/tests/Drupal/Tests/Core/Extension/ThemeHandlerTest.php The mocked config factory.
ThemeSettings::$configFactory property core/modules/system/src/Plugin/migrate/destination/d7/ThemeSettings.php The configuration factory.
TimeZoneResolver::$configFactory property core/modules/system/src/TimeZoneResolver.php The config.
ToolkitGdTest::$imageFactory property core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php The image factory service.
TranslatableStringFactory class core/modules/package_manager/src/TranslatableStringFactory.php Creates translatable strings that can interoperate with Composer Stager.
TranslatableStringFactory.php file core/modules/package_manager/src/TranslatableStringFactory.php
TranslatableStringFactory::createDomainOptions function core/modules/package_manager/src/TranslatableStringFactory.php
TranslatableStringFactory::createTranslatableMessage function core/modules/package_manager/src/TranslatableStringFactory.php
TranslatableStringFactory::createTranslationParameters function core/modules/package_manager/src/TranslatableStringFactory.php
TranslatableStringFactory::__construct function core/modules/package_manager/src/TranslatableStringFactory.php
TransportServiceFactory class core/lib/Drupal/Core/Mailer/TransportServiceFactory.php The default mailer transport service factory.
TransportServiceFactory.php file core/lib/Drupal/Core/Mailer/TransportServiceFactory.php
TransportServiceFactory::createTransport function core/lib/Drupal/Core/Mailer/TransportServiceFactory.php Creates and returns a configured mailer transport class.
TransportServiceFactory::__construct function core/lib/Drupal/Core/Mailer/TransportServiceFactory.php Constructs a new transport service factory.
TransportServiceFactoryInterface interface core/lib/Drupal/Core/Mailer/TransportServiceFactoryInterface.php An interface defining mailer transport service factory implementations.
TransportServiceFactoryInterface.php file core/lib/Drupal/Core/Mailer/TransportServiceFactoryInterface.php
TransportServiceFactoryInterface::createTransport function core/lib/Drupal/Core/Mailer/TransportServiceFactoryInterface.php Creates and returns a configured mailer transport class.
TransportServiceFactoryTest class core/modules/mailer/tests/src/Functional/TransportServiceFactoryTest.php Tests the transport service factory in the child site of browser tests.
TransportServiceFactoryTest.php file core/modules/mailer/tests/src/Functional/TransportServiceFactoryTest.php
TransportServiceFactoryTest::$defaultTheme property core/modules/mailer/tests/src/Functional/TransportServiceFactoryTest.php The theme to install as the default for testing.
TransportServiceFactoryTest::$modules property core/modules/mailer/tests/src/Functional/TransportServiceFactoryTest.php Modules to install.
TransportServiceFactoryTest::testDefaultTestMailFactory function core/modules/mailer/tests/src/Functional/TransportServiceFactoryTest.php Test that the transport is set to null://null by default in the child site.
TransportServiceFactoryTrait trait core/lib/Drupal/Core/Mailer/TransportServiceFactoryTrait.php A trait containing helper methods for transport service construction.
TransportServiceFactoryTrait.php file core/lib/Drupal/Core/Mailer/TransportServiceFactoryTrait.php
TransportServiceFactoryTrait::$factories property core/lib/Drupal/Core/Mailer/TransportServiceFactoryTrait.php A list of transport factories.
TransportServiceFactoryTrait::fromDsnObject function core/lib/Drupal/Core/Mailer/TransportServiceFactoryTrait.php Constructs a transport instance given a DSN object.
TransportTest::providerTestBuiltinFactory function core/modules/mailer/tests/src/Kernel/TransportTest.php Provides test data for testBuiltinFactory().
TransportTest::testBuiltinFactory function core/modules/mailer/tests/src/Kernel/TransportTest.php @dataProvider providerTestBuiltinFactory
@covers ::createTransport[[api-linebreak]]
TransportTest::testDefaultTestMailFactory function core/modules/mailer/tests/src/Kernel/TransportTest.php @covers ::createTransport[[api-linebreak]]
TransportTest::testMissingFactory function core/modules/mailer/tests/src/Kernel/TransportTest.php @covers ::createTransport[[api-linebreak]]
TransportTest::testSendmailFactoryAllowedCommand function core/modules/mailer/tests/src/Kernel/TransportTest.php @covers ::createTransport[[api-linebreak]]
@covers \Drupal\Core\Mailer\Transport\SendmailCommandValidationTransportFactory::create[[api-linebreak]]
TransportTest::testSendmailFactoryUnlistedCommand function core/modules/mailer/tests/src/Kernel/TransportTest.php @covers ::createTransport[[api-linebreak]]
@covers \Drupal\Core\Mailer\Transport\SendmailCommandValidationTransportFactory::create[[api-linebreak]]
TransportTest::testThirdPartyFactory function core/modules/mailer/tests/src/Kernel/TransportTest.php @covers ::createTransport[[api-linebreak]]
TrustedHostsRequestFactory class core/lib/Drupal/Core/Http/TrustedHostsRequestFactory.php Provides a request factory for requests using host verification.
TrustedHostsRequestFactory.php file core/lib/Drupal/Core/Http/TrustedHostsRequestFactory.php
TrustedHostsRequestFactory::$host property core/lib/Drupal/Core/Http/TrustedHostsRequestFactory.php The host of the main request.
TrustedHostsRequestFactory::createRequest function core/lib/Drupal/Core/Http/TrustedHostsRequestFactory.php Creates a new request object.

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