You are here

public function ExtraFieldTypePluginManager::createInstance in Entity Extra Field 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 PluginManagerBase::createInstance

File

src/ExtraFieldTypePluginManager.php, line 36

Class

ExtraFieldTypePluginManager
Define the extra field type plugin manage.

Namespace

Drupal\entity_extra_field

Code

public function createInstance($plugin_id, array $configuration = []) {
  return parent::createInstance($plugin_id, $configuration);
}