Skip to content
Snippets Groups Projects
Commit 8ee234bc authored by Andreas De Rijcke's avatar Andreas De Rijcke Committed by mschudders
Browse files

Issue #3375052: Uncaught Error: Call to undefined method...

Issue #3375052: Uncaught Error: Call to undefined method Symfony\Component\HttpFoundation\RequestStack::getMasterRequest()
parent 9309a0bf
No related branches found
No related tags found
1 merge request!5Issue #3375052: Uncaught Error: Call to undefined method Symfony\Component\HttpFoundation\RequestStack::getMasterRequest()
......@@ -77,7 +77,7 @@ class ContextualLinkManager extends \Drupal\Core\Menu\ContextualLinkManager {
}
}
$ids = $this->requestStack->getMasterRequest()->request->get('ids');
$ids = version_compare(\Drupal::VERSION, '9.3', '>=') ? $this->requestStack->getMainRequest()->request->get('ids') : $this->requestStack->getMasterRequest()->request->get('ids');
if (!empty($ids)) {
foreach ($ids as $id) {
if (strpos($id, 'layout_builder_block:section_storage_type=') !== FALSE) {
......
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