Skip to content
This repository has been archived by the owner on Sep 8, 2018. It is now read-only.

Commit

Permalink
Merge pull request #5 from froboy/patch-1
Browse files Browse the repository at this point in the history
Resolve string to array issue
  • Loading branch information
agentrickard authored May 14, 2018
2 parents a3e81da + 4ba2339 commit 5d1998a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Element/LocalTasks.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ public static function preRenderLocalTasks($element) {
$tabs = $manager->getLocalTasks($route_name, $i);

foreach (Element::getVisibleChildren($tabs['tabs']) as $tab_key) {
if (!is_array($element[$key])) {
$element[$key] = [];
}
$element[$key][$tab_key] = $tabs['tabs'][$tab_key];
$element[$key][$tab_key]['#theme'] = 'workbench_tabs_menu_local_task';
}
Expand Down

0 comments on commit 5d1998a

Please sign in to comment.