You are here

public function AjaxCommandBase::getSetting in Forena Reports 8

Same name and namespace in other branches
  1. 7.4 AjaxCommand/AjaxCommandBase.php \Drupal\forena\FrxPlugin\AjaxCommand\AjaxCommandBase::getSetting()

Parameters

$settings:

$key:

Return value

array The settings in the array

17 calls to AjaxCommandBase::getSetting()
After::commandFromSettings in src/FrxPlugin/AjaxCommand/After.php
Settings are passed into this factory from either the skin or the report element. If there are complex structures when used in the arguments they will be passed in the 'text' setting. These should be decoded by any plugin intending to use…
Alert::commandFromSettings in src/FrxPlugin/AjaxCommand/Alert.php
Append::commandFromSettings in src/FrxPlugin/AjaxCommand/Append.php
JQuery Append Command
Before::commandFromSettings in src/FrxPlugin/AjaxCommand/Before.php
JQuery Before Command
Changed::commandFromSettings in src/FrxPlugin/AjaxCommand/Changed.php
Changed command

... See full list

File

src/FrxPlugin/AjaxCommand/AjaxCommandBase.php, line 24

Class

AjaxCommandBase

Namespace

Drupal\forena\FrxPlugin\AjaxCommand

Code

public function getSetting(&$settings, $key) {
  $value = NULL;
  if (isset($settings[$key])) {
    $value = $settings[$key];
    unset($settings[$key]);
  }
  static::replacer()
    ->replaceNested($value);
  return $value;
}