Skip to content
Snippets Groups Projects
Commit b9e078a0 authored by catch's avatar catch
Browse files

Issue #3259807 by idebr, anneke_vde: #type => 'toolbar_item' without a tab...

Issue #3259807 by idebr, anneke_vde: #type => 'toolbar_item' without a tab triggers a deprecation notice on PHP8.1
parent 22859f81
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,7 @@ public function getInfo() { ...@@ -25,7 +25,7 @@ public function getInfo() {
], ],
'tab' => [ 'tab' => [
'#type' => 'link', '#type' => 'link',
'#title' => NULL, '#title' => '',
'#url' => Url::fromRoute('<front>'), '#url' => Url::fromRoute('<front>'),
], ],
]; ];
......
...@@ -45,6 +45,9 @@ function toolbar_test_toolbar() { ...@@ -45,6 +45,9 @@ function toolbar_test_toolbar() {
], ],
'#weight' => 50, '#weight' => 50,
]; ];
$items['empty'] = [
'#type' => 'toolbar_item',
];
return $items; return $items;
} }
......
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