class Prepend in Forena Reports 7.4
Same name and namespace in other branches
- 8 src/FrxPlugin/AjaxCommand/Prepend.php \Drupal\forena\FrxPlugin\AjaxCommand\Prepend
Prepend command
Plugin annotation
@FrxAjaxCommand(
id = "prepend"
)
Hierarchy
- class \Drupal\forena\FrxPlugin\AjaxCommand\AjaxCommandBase implements AjaxCommandInterface
- class \Drupal\forena\FrxPlugin\AjaxCommand\Prepend
Expanded class hierarchy of Prepend
1 string reference to 'Prepend'
File
- AjaxCommand/
Prepend.php, line 19
Namespace
Drupal\forena\FrxPlugin\AjaxCommandView source
class Prepend extends AjaxCommandBase {
/**
* JQuery Prepend Command
*
* Settings:
* - selector: JQuery selector to use for Prepend.
* - 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_prepend($selector, $text, $settings);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AjaxCommandBase:: |
protected | property | ||
AjaxCommandBase:: |
public | function | ||
AjaxCommandBase:: |
public | function | ||
AjaxCommandBase:: |
public | function | AjaxCommandBase constructor. | |
Prepend:: |
public | function |
JQuery Prepend Command Overrides AjaxCommandInterface:: |