function RulesAbstractPlugin::__construct
Parameters
string $name: The plugin implementation's name.
$settings: (optional) Further information provided about the plugin.
Throws
RulesException If validation of the passed settings fails RulesExceptions are thrown.
Overrides RulesExtendable::__construct
File
-
includes/
rules.core.inc, line 1525
Class
- RulesAbstractPlugin
- Defines a common base class for so-called "Abstract Plugins" like actions.
Code
public function __construct($name = NULL, $settings = array()) {
$this->elementName = $name;
$this->settings = (array) $settings + array(
'#_needs_processing' => TRUE,
);
$this->setUp();
}