diff --git a/bootstrap_layouts.module b/bootstrap_layouts.module
index 2f0681b..e22ff25 100644
--- a/bootstrap_layouts.module
+++ b/bootstrap_layouts.module
@@ -75,10 +75,10 @@ function _bootstrap_layouts_parse_attributes($string = NULL, array $tokens = [])
  */
 function _bootstrap_layouts_preprocess_layout(array &$variables) {
   /** @var \Drupal\Core\Layout\LayoutDefinition $layout_definition */
-  $layout_definition = $variables['layout'];
+  $layout_definition = $variables['content']['#layout'];
 
   // Utilize the BootstrapLayout utility class to normalize DX readability here.
-  $layout = new BootstrapLayout($layout_definition->id(), [], $variables['settings']);
+  $layout = new BootstrapLayout($layout_definition->id(), [], $variables['content']['#settings']);
 
   // Determine the entity, entity type and bundle.
   /** @var \Drupal\Core\Entity\EntityInterface $entity */
