CodeExplorer getEmotionComponents example
'name' =>
$componentName,
'pluginId' =>
$plugin->
getId(),
]);
if (!
$component) { $component =
new Component();
} $config =
array_merge(static::COMPONENT_DEFAULTS,
['name' =>
$componentName],
$data);
$component->
fromArray($config);
$component->
setPluginId($plugin->
getId());
$component->
setPlugin($plugin);
$plugin->
getEmotionComponents()->
add($component);
return $component;
}}