Skip to content
Snippets Groups Projects
Commit 78f018b2 authored by christian.wiedemann's avatar christian.wiedemann
Browse files

Update component info alter

parent 2751e50d
No related branches found
No related tags found
No related merge requests found
......@@ -9,11 +9,11 @@
/**
* Alter Hook for SDC Component definition.
*
* @param array $definition
* SDC Component definition.
* @param array $definitions
* SDC Component definitions.
*
* @see \Drupal\ui_patterns\ComponentPluginManager
*/
function hook_component_definition_alter(array &$definition) {
$definition['slots']['slot_name']["title"] = 'demo';
function hook_component_info_alter(array &$definitions) {
$definitions['COMPONENT_ID']['slots']['slot_name']["title"] = 'demo';
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment