You are here

public function RulesConditionalSwitch::pluginParameterInfo in Conditional Rules 7

Same name and namespace in other branches
  1. 8 includes/rules_conditional.plugin.inc \RulesConditionalSwitch::pluginParameterInfo()

Returns info about parameters needed by the plugin.

Note that not necessarily all parameters are needed when executing the plugin, as values for the parameter might have been already configured via the element settings.

Overrides RulesPlugin::pluginParameterInfo

See also

self::parameterInfo()

File

includes/rules_conditional.plugin.inc, line 194
Rules plugin implementation.

Class

RulesConditionalSwitch
Switch conditional container.

Code

public function pluginParameterInfo() {
  $parameterInfo = array(
    'data' => array(
      'type' => '*',
      'label' => t('Data to match cases against'),
      'description' => t('The data to be compared, specified by using a data selector, e.g. "node:author:name".'),
      'restriction' => 'selector',
      'allow null' => TRUE,
    ),
  );
  return $parameterInfo;
}