You are here

class CloseDialog in Forena Reports 8

Class CloseDialog

Plugin annotation


@FrxAjaxCommand(
  id = "closeDialog"
)

Hierarchy

Expanded class hierarchy of CloseDialog

File

src/FrxPlugin/AjaxCommand/CloseDialog.php, line 19

Namespace

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

  /**
   * Close a dialoge.
   * @param array $settings
   *   Settings for command
   * @return CloseDialogCommand
   *   Close dialog ajax command object.
   */
  public function commandFromSettings(array $settings) {
    $selector = $this
      ->getSetting($settings, 'selector');
    $persist = $this
      ->getSetting($settings, 'persist') !== TRUE;
    return new CloseDialogCommand($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.
CloseDialog::commandFromSettings public function Close a dialoge. Overrides AjaxCommandInterface::commandFromSettings