'layout-builder__link--add',
],
'data-dialog-type' => 'dialog',
'data-dialog-renderer' => 'off_canvas',
],
] ),
];
$build[$region]['layout_builder_add_block'
]['#type'
] = 'container';
$build[$region]['layout_builder_add_block'
]['#attributes'
] =
[ 'class' =>
['layout-builder__add-block'
],
'data-layout-builder-highlight-id' =>
$this->
blockAddHighlightId($delta,
$region),
];
$build[$region]['layout_builder_add_block'
]['#weight'
] = 1000;
$build[$region]['#attributes'
]['data-region'
] =
$region;
$build[$region]['#attributes'
]['class'
][] = 'layout-builder__region';
$build[$region]['#attributes'
]['class'
][] = 'js-layout-builder-region';
$build[$region]['#attributes'
]['role'
] = 'group';
$build[$region]['#attributes'
]['aria-label'
] =
$this->
t('@region region in @section',
[ '@region' =>
$info['label'
],
'@section' =>
$section_label,
]);