You are here

Data.php in Forena Reports 8

File

src/FrxPlugin/AjaxCommand/Data.php
View source
<?php

/**
 * Created by PhpStorm.
 * User: metzlerd
 * Date: 4/17/16
 * Time: 5:24 PM
 */
namespace Drupal\forena\FrxPlugin\AjaxCommand;

use Drupal\Core\Ajax\DataCommand;

/**
 * Class Data
 * 
 * @FrxAjaxCommand(
 *   id = "data"
 * )
 */
class Data extends AjaxCommandBase {
  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);
  }

}

Classes

Namesort descending Description
Data Class Data