You are here

class CloseModalDialog in Forena Reports 8

Class CloseDialog

Plugin annotation


@FrxAjaxCommand(
  id = "closeModalDialog"
)

Hierarchy

Expanded class hierarchy of CloseModalDialog

File

src/FrxPlugin/AjaxCommand/CloseModalDialog.php, line 20

Namespace

Drupal\forena\FrxPlugin\AjaxCommand
View source
class CloseModalDialog extends AjaxCommandBase {

  /**
   * Close a dialoge.
   * @param array $settings
   *   Settings for command
   * @return CloseModalDialogCommand
   *   Close modal dialog command object.
   */
  public function commandFromSettings(array $settings) {
    $selector = $this
      ->getSetting($settings, 'selector');
    $persist = $this
      ->getSetting($settings, 'persist') !== TRUE;
    return new CloseModalDialogCommand($selector, $persist);
  }

}

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.
CloseModalDialog::commandFromSettings public function Close a dialoge. Overrides AjaxCommandInterface::commandFromSettings