You are here

public function FieldFormatterConditionBase::createInstance in Field Formatter Condition 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

src/Plugin/FieldFormatterConditionBase.php, line 31

Class

FieldFormatterConditionBase
Base class for Field formatter condition plugins.

Namespace

Drupal\fico\Plugin

Code

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