You are here

public function FieldTypePluginManagerDummy::createInstance in Entity Construction Kit (ECK) 8

Creates a pre-configured 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.

Throws

\Drupal\Component\Plugin\Exception\PluginException If the instance cannot be created, such as if the ID is invalid.

Overrides FactoryInterface::createInstance

File

tests/src/Unit/TestDoubles/FieldTypePluginManagerDummy.php, line 59

Class

FieldTypePluginManagerDummy
Dummy implementation of FieldTypePluginManagerInterface.

Namespace

Drupal\Tests\eck\Unit\TestDoubles

Code

public function createInstance($plugin_id, array $configuration = []) {

  // Stub.
}