You are here

Invoke.php in Forena Reports 8

File

src/FrxPlugin/AjaxCommand/Invoke.php
View 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;
  }

}

Classes

Namesort descending Description
Invoke Class Invoke