You are here

class OpenModalDialog in Forena Reports 8

Class OpenModalDialog

Plugin annotation


@FrxAjaxCommand(
  id = "openModalDialog"
)

Hierarchy

Expanded class hierarchy of OpenModalDialog

File

src/FrxPlugin/AjaxCommand/OpenModalDialog.php, line 21

Namespace

Drupal\forena\FrxPlugin\AjaxCommand
View source
class OpenModalDialog extends AjaxCommandBase {
  public function commandFromSettings(array $settings) {
    $selector = $this
      ->getSetting($settings, 'selector');
    $title = $this
      ->getSetting($settings, 'title');
    $content = $this
      ->getSetting($settings, 'text');
    return new OpenDialogCommand($selector, $title, $content, $settings);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AjaxCommandBase::$replacer protected static property
AjaxCommandBase::getJSONText public function Get json text.
AjaxCommandBase::getSetting public function
AjaxCommandBase::replacer public static function Report Replacer.
OpenModalDialog::commandFromSettings public function 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… Overrides AjaxCommandInterface::commandFromSettings