Skip to content
Snippets Groups Projects
Commit e0e81cde authored by Deepak Mishra's avatar Deepak Mishra Committed by Pravin Gaikwad
Browse files

3313342: Fixed php8.1 deprecation notice.

parent 26356793
No related branches found
No related tags found
No related merge requests found
......@@ -158,7 +158,7 @@ function layout_builder_entity_view_alter(array &$build, EntityInterface $entity
// If the entity is displayed within a Layout Builder block and the current
// route is in the Layout Builder UI, then remove all contextual link
// placeholders.
if ($route_name && $display instanceof LayoutBuilderEntityViewDisplay && strpos($route_name, 'layout_builder.') === 0) {
if ($route_name && $display instanceof LayoutBuilderEntityViewDisplay && str_starts_with($route_name, 'layout_builder.')) {
unset($build['#contextual_links']);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment