class Before in Forena Reports 7.4
Same name and namespace in other branches
- 8 src/FrxPlugin/AjaxCommand/Before.php \Drupal\forena\FrxPlugin\AjaxCommand\Before
Before command
Plugin annotation
@FrxAjaxCommand(
  id = "before"
)
Hierarchy
- class \Drupal\forena\FrxPlugin\AjaxCommand\AjaxCommandBase implements AjaxCommandInterface- class \Drupal\forena\FrxPlugin\AjaxCommand\Before
 
Expanded class hierarchy of Before
1 string reference to 'Before'
File
- AjaxCommand/Before.php, line 19 
Namespace
Drupal\forena\FrxPlugin\AjaxCommandView source
class Before extends AjaxCommandBase {
  /**
   * JQuery Before Command
   *
   * Settings:
   *   - selector: JQuery selector to use for Before.
   *   - text: HTML to use to replace
   *
   * @param array $settings
   *   Settings for command
   * @return \Drupal\Core\Ajax\BeforeCommand
   */
  public function commandFromSettings(array $settings) {
    $text = $this
      ->getSetting($settings, 'text');
    $selector = $this
      ->getSetting($settings, 'selector');
    return ajax_command_before($selector, $text, $settings);
  }
}Members
| Name   | Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| AjaxCommandBase:: | protected | property | ||
| AjaxCommandBase:: | public | function | ||
| AjaxCommandBase:: | public | function | ||
| AjaxCommandBase:: | public | function | AjaxCommandBase constructor. | |
| Before:: | public | function | JQuery Before Command Overrides AjaxCommandInterface:: | 
