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

Commit

Permalink
Resolve string to array issue
Browse files Browse the repository at this point in the history
  • Loading branch information
froboy authored Aug 2, 2017
1 parent a3e81da commit 4ba2339
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 4ba2339

Please sign in to comment.