You are here

public function TamperBase::getSetting in Tamper 8

Get a particular configuration value.

Parameters

string $key: Key of the configuration.

Return value

mixed|null Setting value if found.

Overrides TamperInterface::getSetting

49 calls to TamperBase::getSetting()
ConvertBoolean::buildConfigurationForm in src/Plugin/Tamper/ConvertBoolean.php
Form constructor.
ConvertBoolean::tamper in src/Plugin/Tamper/ConvertBoolean.php
Tamper data.
ConvertCase::buildConfigurationForm in src/Plugin/Tamper/ConvertCase.php
Form constructor.
ConvertCase::tamper in src/Plugin/Tamper/ConvertCase.php
Tamper data.
Copy::buildConfigurationForm in src/Plugin/Tamper/Copy.php
Form constructor.

... See full list

File

src/TamperBase.php, line 57

Class

TamperBase
Provides a base class to tamper data from.

Namespace

Drupal\tamper

Code

public function getSetting($key) {
  return isset($this->configuration[$key]) ? $this->configuration[$key] : NULL;
}