function MapperInterface::getInstance

Same name in other branches
  1. 8.9.x core/lib/Drupal/Component/Plugin/Mapper/MapperInterface.php \Drupal\Component\Plugin\Mapper\MapperInterface::getInstance()
  2. 10 core/lib/Drupal/Component/Plugin/Mapper/MapperInterface.php \Drupal\Component\Plugin\Mapper\MapperInterface::getInstance()
  3. 11.x core/lib/Drupal/Component/Plugin/Mapper/MapperInterface.php \Drupal\Component\Plugin\Mapper\MapperInterface::getInstance()

Gets a preconfigured instance of a plugin.

Parameters

array $options: An array of options that can be used to determine a suitable plugin to instantiate and how to configure it.

Return value

object|false A fully configured plugin instance. The interface of the plugin instance will depend on the plugin type. If no instance can be retrieved, FALSE will be returned.

File

core/lib/Drupal/Component/Plugin/Mapper/MapperInterface.php, line 28

Class

MapperInterface
Plugin mapper interface.

Namespace

Drupal\Component\Plugin\Mapper

Code

public function getInstance(array $options);

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