Search for getInstance

  1. Search 7.x for getInstance
  2. Search 9.5.x for getInstance
  3. Search 10.3.x for getInstance
  4. Search 11.x for getInstance
  5. Other projects
Title Object type File name Summary
ArchiverManager::getInstance function core/lib/Drupal/Core/Archiver/ArchiverManager.php
BlockContent::getInstances function core/modules/block_content/src/Entity/BlockContent.php Gets the configured instances of this custom block.
BlockContentInterface::getInstances function core/modules/block_content/src/BlockContentInterface.php Gets the configured instances of this custom block.
ClassResolver::getInstanceFromDefinition function core/lib/Drupal/Core/DependencyInjection/ClassResolver.php Returns a class instance with a given class definition.
ClassResolverInterface::getInstanceFromDefinition function core/lib/Drupal/Core/DependencyInjection/ClassResolverInterface.php Returns a class instance with a given class definition.
ConstraintValidatorFactory::getInstance function core/lib/Drupal/Core/Validation/ConstraintValidatorFactory.php
DateTimeIso8601NormalizerTest::testDenormalizeNoTargetInstanceOrFieldDefinitionException function core/modules/serialization/tests/src/Unit/Normalizer/DateTimeIso8601NormalizerTest.php Tests the denormalize function with incomplete serialization context.
DefaultSingleLazyPluginCollectionTest::testGetInstanceIds function core/tests/Drupal/Tests/Core/Plugin/DefaultSingleLazyPluginCollectionTest.php @covers ::getInstanceIds
EntityManager::getInstance function core/lib/Drupal/Core/Entity/EntityManager.php
EntityManagerTest::testGetInstance function core/tests/Drupal/Tests/Core/Entity/EntityManagerTest.php Tests the getInstance() method.
FormatterPluginManager::getInstance function core/lib/Drupal/Core/Field/FormatterPluginManager.php Overrides PluginManagerBase::getInstance().
LazyPluginCollection::getInstanceIds function core/lib/Drupal/Component/Plugin/LazyPluginCollection.php Gets all instance IDs.
MailManager::getInstance function core/lib/Drupal/Core/Mail/MailManager.php Overrides PluginManagerBase::getInstance().
MailManagerTest::testGetInstance function core/tests/Drupal/Tests/Core/Mail/MailManagerTest.php Tests the getInstance method.
MapperInterface::getInstance function core/lib/Drupal/Component/Plugin/Mapper/MapperInterface.php Gets a preconfigured instance of a plugin.
MenuLinkManager::getInstance function core/lib/Drupal/Core/Menu/MenuLinkManager.php
MenuLinkPluginTest::testGetInstanceReflection function core/modules/menu_link_content/tests/src/Unit/MenuLinkPluginTest.php @covers ::getUuid
PluginManagerBase::getInstance function core/lib/Drupal/Component/Plugin/PluginManagerBase.php
PluginManagerBaseTest::testGetInstance function core/tests/Drupal/Tests/Component/Plugin/PluginManagerBaseTest.php @covers ::getInstance
PluginManagerBaseTest::testGetInstanceWithoutMapperShouldThrowException function core/tests/Drupal/Tests/Component/Plugin/PluginManagerBaseTest.php @covers ::getInstance
ReflectionFactory::getInstanceArguments function core/lib/Drupal/Component/Plugin/Factory/ReflectionFactory.php Inspects the plugin class and build a list of arguments for the constructor.
ReflectionFactoryTest::providerGetInstanceArguments function core/tests/Drupal/Tests/Component/Plugin/Factory/ReflectionFactoryTest.php Data provider for testGetInstanceArguments.
ReflectionFactoryTest::testGetInstanceArguments function core/tests/Drupal/Tests/Component/Plugin/Factory/ReflectionFactoryTest.php @covers ::getInstanceArguments
@dataProvider providerGetInstanceArguments
ResourcePluginManager::getInstance function core/modules/rest/src/Plugin/Type/ResourcePluginManager.php
SelectionPluginManager::getInstance function core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionPluginManager.php
Settings::getInstance function core/lib/Drupal/Core/Site/Settings.php Returns the settings instance.
SettingsTest::testGetInstance function core/tests/Drupal/Tests/Core/Site/SettingsTest.php @covers ::getInstance
SettingsTest::testGetInstanceReflection function core/tests/Drupal/Tests/Core/Site/SettingsTest.php Tests that an exception is thrown when settings are not initialized yet.
StreamWrapperTest::testGetInstanceByScheme function core/tests/Drupal/KernelTests/Core/File/StreamWrapperTest.php Test the getViaScheme() method.
TypedDataManager::getInstance function core/lib/Drupal/Core/TypedData/TypedDataManager.php
TypedDataManagerInterface::getInstance function core/lib/Drupal/Core/TypedData/TypedDataManagerInterface.php
WidgetPluginManager::getInstance function core/lib/Drupal/Core/Field/WidgetPluginManager.php Overrides PluginManagerBase::getInstance().

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