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