Invoke.php in Forena Reports 8
Namespace
Drupal\forena\FrxPlugin\AjaxCommandFile
src/FrxPlugin/AjaxCommand/Invoke.phpView source
<?php
/**
* Created by PhpStorm.
* User: metzlerd
* Date: 4/16/16
* Time: 2:27 PM
*/
namespace Drupal\forena\FrxPlugin\AjaxCommand;
use Drupal\Core\Ajax\InvokeCommand;
/**
* Class Invoke
*
* @FrxAjaxCommand(
* id = "invoke"
* )
*/
class Invoke extends AjaxCommandBase {
/**
* {@inheritdoc}
*/
public function commandFromSettings(array $settings) {
$selector = $settings['selector'];
$method = $settings['method'];
$arguments = $this
->getJSONText($settings, 'arguments');
$command = new InvokeCommand($selector, $method, $arguments);
return $command;
}
}