You are here

protected function RulesAbstractPlugin::exportToArray in Rules 7.2

Overrides RulesPlugin::exportToArray

1 method overrides RulesAbstractPlugin::exportToArray()
RulesCondition::exportToArray in includes/rules.plugins.inc

File

includes/rules.core.inc, line 1664
Rules base classes and interfaces needed for any rule evaluation.

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,
  );
}