Commit 0e83520c authored by webchick's avatar webchick

Issue #2929783 by tim.plunkett, MerryHamster, bnjmnm, xjm, webchick,...

Issue #2929783 by tim.plunkett, MerryHamster, bnjmnm, xjm, webchick, samuel.mortenson, EclipseGc, kevincrafts, ndf, DyanneNova, yoroy, TheodorosPloumis, tedbow, pixelite, seanB, phenaproxima, AaronMcHale, benjifisher: Review Layout Builder UI terminology
parent 9748db65
......@@ -2,6 +2,7 @@ layout_builder.choose_section:
path: '/layout_builder/choose/section/{section_storage_type}/{section_storage}/{delta}'
defaults:
_controller: '\Drupal\layout_builder\Controller\ChooseSectionController::build'
_title: 'Choose a layout for this section'
requirements:
_permission: 'configure any layout'
_layout_builder_access: 'view'
......@@ -58,6 +59,7 @@ layout_builder.choose_block:
path: '/layout_builder/choose/block/{section_storage_type}/{section_storage}/{delta}/{region}'
defaults:
_controller: '\Drupal\layout_builder\Controller\ChooseBlockController::build'
_title: 'Choose a block'
requirements:
_permission: 'configure any layout'
_layout_builder_access: 'view'
......@@ -71,6 +73,7 @@ layout_builder.add_block:
path: '/layout_builder/add/block/{section_storage_type}/{section_storage}/{delta}/{region}/{plugin_id}'
defaults:
_form: '\Drupal\layout_builder\Form\AddBlockForm'
_title: 'Configure block'
requirements:
_permission: 'configure any layout'
_layout_builder_access: 'view'
......@@ -97,6 +100,7 @@ layout_builder.update_block:
path: '/layout_builder/update/block/{section_storage_type}/{section_storage}/{delta}/{region}/{uuid}'
defaults:
_form: '\Drupal\layout_builder\Form\UpdateBlockForm'
_title: 'Configure block'
requirements:
_permission: 'configure any layout'
_layout_builder_access: 'view'
......
......@@ -74,7 +74,6 @@ public static function create(ContainerInterface $container) {
* A render array.
*/
public function build(SectionStorageInterface $section_storage, $delta, $region) {
$build['#title'] = $this->t('Choose a block');
if ($this->entityTypeManager->hasDefinition('block_content_type') && $types = $this->entityTypeManager->getStorage('block_content_type')->loadMultiple()) {
if (count($types) === 1) {
$type = reset($types);
......
......@@ -59,8 +59,6 @@ public static function create(ContainerInterface $container) {
* The render array.
*/
public function build(SectionStorageInterface $section_storage, $delta) {
$output['#title'] = $this->t('Choose a layout');
$items = [];
$definitions = $this->layoutManager->getFilteredDefinitions('layout_builder', [], ['section_storage' => $section_storage]);
foreach ($definitions as $plugin_id => $definition) {
......
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