You are here

public function TamperPluginBase::getConfiguration in Tamper 7

Returns this plugin's configuration.

Return value

array An array of this plugin's configuration.

Overrides TamperPluginInterface::getConfiguration

File

src/Tamper.php, line 295
Contains TamperPluginBase.

Class

TamperPluginBase
Base class for Tamper plugins.

Code

public function getConfiguration($key = NULL) {
  if ($key === NULL) {
    return $this->configuration;
  }
  if (isset($this->configuration[$key])) {
    return $this->configuration[$key];
  }
}