Commit 0013d21a authored by catch's avatar catch
Browse files

Issue #3324574 by Prem Suthar, andypost, seanhellwig, _pratik_, trickfun,...

Issue #3324574 by Prem Suthar, andypost, seanhellwig, _pratik_, trickfun, longwave: Deprecated function: strpos() in layout_builder_entity_view_alter
parent c552be1a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 ($display instanceof LayoutBuilderEntityViewDisplay && strpos($route_name, 'layout_builder.') === 0) {
  if ($route_name && $display instanceof LayoutBuilderEntityViewDisplay && strpos($route_name, 'layout_builder.') === 0) {
    unset($build['#contextual_links']);
  }
}