/** * Constructor method; sets the component data. * * @param $component_name * The identifier for the component. * @param $component_data * (optional) An array of data for the component. Any missing properties * (or all if this is entirely omitted) are given default values. Valid * properties are: * - 'class': The name of the annotation class that defines the plugin * type, e.g. 'Drupal\Core\Entity\Annotation\EntityType'. * TODO: since the classnames are unique regardless of namespace, figure * out if there is a way of just specifying the classname. */ function __construct($component_name, $component_data = array()) { // Set some default properties. $component_data += array(); $mb_task_handler_report_plugins = \ModuleBuilder\Factory::getTask('ReportPluginData'); $plugin_data = $mb_task_handler_report_plugins->listPluginData(); $plugin_data = $plugin_data[$component_name]; $component_data['plugin_type_data'] = $plugin_data; parent::__construct($component_name, $component_data); }
/** * Constructor method; sets the component data. * * @param $component_name * The identifier for the component. * @param $component_data * (optional) An array of data for the component. Any missing properties * (or all if this is entirely omitted) are given default values. Valid * properties are: * - 'class': The name of the annotation class that defines the plugin * type, e.g. 'Drupal\Core\Entity\Annotation\EntityType'. * TODO: since the classnames are unique regardless of namespace, figure * out if there is a way of just specifying the classname. */ function __construct($component_name, $component_data = array()) { // Set some default properties. $component_data += array(); $mb_factory = module_builder_get_factory('ModuleBuilderEnvironmentDrush'); $mb_task_handler_report_plugins = $mb_factory->getTask('ReportPluginData'); $plugin_data = $mb_task_handler_report_plugins->listPluginData(); $plugin_data = $plugin_data[$component_name]; $component_data['plugin_type_data'] = $plugin_data; parent::__construct($component_name, $component_data); }
function __construct($component_name, $component_data = array()) { parent::__construct($component_name, $component_data); $this->setClassNames($this->name); }
/** * Constructor method; sets the component data. * * @param $component_name * The identifier for the component. * @param $component_data * (optional) An array of data for the component. Any missing properties * (or all if this is entirely omitted) are given default values. Valid * properties are: * - 'class': The name of the annotation class that defines the plugin * type, e.g. 'Drupal\Core\Entity\Annotation\EntityType'. * TODO: since the classnames are unique regardless of namespace, figure * out if there is a way of just specifying the classname. */ function __construct($component_name, $component_data = array()) { // Set some default properties. $component_data += array(); parent::__construct($component_name, $component_data); }