public function FactoryInterface::createInstance

Returns a preconfigured instance of a plugin.

Parameters

string $plugin_id: The id of the plugin being instantiated.

array $configuration: An array of configuration relevant to the plugin instance.

Return value

object A fully configured plugin instance.

2 methods override FactoryInterface::createInstance()

File

drupal/core/lib/Drupal/Component/Plugin/Factory/FactoryInterface.php, line 27
Definition of Drupal\Component\Plugin\Factory\FactoryInterface.

Class

FactoryInterface
Factory interface implemented by all plugin factories.

Namespace

Drupal\Component\Plugin\Factory

Code

public function createInstance($plugin_id, array $configuration);