function RulesAbstractPlugin::exportToArray
Overrides RulesPlugin::exportToArray
1 method overrides RulesAbstractPlugin::exportToArray()
- RulesCondition::exportToArray in includes/
rules.plugins.inc
File
-
includes/
rules.core.inc, line 1675
Class
- RulesAbstractPlugin
- Defines a common base class for so-called "Abstract Plugins" like actions.
Code
protected function exportToArray() {
$export = $this->exportSettings();
if (!$this->providesVariables()) {
// Abbreviate the export making "USING" implicit.
$export = isset($export['USING']) ? $export['USING'] : array();
}
return array(
$this->elementName => $export,
);
}