Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 296275

$delta is passed as string and not integer

$
0
0

This is a follow-up for #2973615: Add Section delta as extra data on filtered block definitions. $delta is passed as a string but should be passed as a integer.

i.e.

+++ b/core/modules/layout_builder/src/Controller/ChooseBlockController.php
@@ -63,8 +63,13 @@ public function build(SectionStorageInterface $section_storage, $delta, $region)
+    // Currently delta is passed as a string, so we'll explicitily convert it
+    // to a integer.
+    $delta = (int) $delta;

Viewing all articles
Browse latest Browse all 296275

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>