You are here

public function TamperPluginDefinition::createInstance in Tamper 7

Creates a plugin instance.

Parameters

array $configuration: (optional) The configuration of the plugin.

Return value

TamperPluginInterface Returns the newly constructed plugin.

File

src/Tamper.php, line 123
Contains TamperPluginBase.

Class

TamperPluginDefinition
Wraps a plugin definition array.

Code

public function createInstance(array $configuration = array()) {
  $class = $this
    ->getClass();
  return new $class($configuration, $this->id, $this);
}