'container' =>
[ '#attributes' =>
[ 'id' => 'layout-builder-components-table',
'class' =>
['layout-builder-components-table'
],
'aria-label' =>
$aria_label,
],
],
],
];
/** @var \Drupal\layout_builder\SectionComponent[] $components */
$components =
$current_section->
getComponentsByRegion($selected_region);
// If the component is not in this region, add it to the listed components.
if (!
isset($components[$uuid])) { $components[$uuid] =
$sections[$delta]->
getComponent($uuid);
} $state_weight_delta =
round(count($components) / 2
);
foreach ($components as $component_uuid =>
$component) { /** @var \Drupal\Core\Block\BlockPluginInterface $plugin */
$plugin =
$component->
getPlugin();
$is_current_block =
$component_uuid ===
$uuid;
$row_classes =
[