class Replace in Forena Reports 7.4
Same name and namespace in other branches
- 8 src/FrxPlugin/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
1 string reference to 'Replace'
File
- AjaxCommand/
Replace.php, line 19
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 array
*/
public function commandFromSettings(array $settings) {
$text = $this
->getSetting($settings, 'text');
$selector = $this
->getSetting($settings, 'selector');
return ajax_command_replace($selector, $text, $settings);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AjaxCommandBase:: |
protected | property | ||
AjaxCommandBase:: |
public | function | ||
AjaxCommandBase:: |
public | function | ||
AjaxCommandBase:: |
public | function | AjaxCommandBase constructor. | |
Replace:: |
public | function |
JQuery Replace Command Overrides AjaxCommandInterface:: |