public function Data::commandFromSettings in Forena Reports 8
Same name and namespace in other branches
- 7.4 AjaxCommand/Data.php \Drupal\forena\FrxPlugin\AjaxCommand\Data::commandFromSettings()
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 the interior element of an AJAX command.
Parameters
array $settings:
Return value
mixed The ajax command object expected by drupal.
Overrides AjaxCommandInterface::commandFromSettings
File
- src/
FrxPlugin/ AjaxCommand/ Data.php, line 21
Class
- Data
- Class Data
Namespace
Drupal\forena\FrxPlugin\AjaxCommandCode
public function commandFromSettings(array $settings) {
$selector = $this
->getSetting($settings, 'selector');
$name = $this
->getSetting($settings, 'name');
$value = $this
->getSetting($selector, 'value');
return new DataCommand($selector, $name, $value);
}