Unverified Commit 9ee0227b authored by lauriii's avatar lauriii

Issue #2995078 by sugaroverflow, dead_arm: Add a title to the off-canvas...

Issue #2995078 by sugaroverflow, dead_arm: Add a title to the off-canvas dialog when opened by clicking "Add Block"
parent 9b28e1f7
......@@ -5,6 +5,7 @@
use Drupal\Core\Ajax\AjaxHelperTrait;
use Drupal\Core\Block\BlockManagerInterface;
use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use Drupal\Core\Url;
use Drupal\layout_builder\Context\LayoutBuilderContextTrait;
use Drupal\layout_builder\SectionStorageInterface;
......@@ -19,6 +20,7 @@ class ChooseBlockController implements ContainerInjectionInterface {
use AjaxHelperTrait;
use LayoutBuilderContextTrait;
use StringTranslationTrait;
/**
* The block manager.
......@@ -60,6 +62,7 @@ public static function create(ContainerInterface $container) {
* A render array.
*/
public function build(SectionStorageInterface $section_storage, $delta, $region) {
$build['#title'] = $this->t('Choose a block');
$build['#type'] = 'container';
$build['#attributes']['class'][] = 'block-categories';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment