Skip to content
Snippets Groups Projects

Add help text

Merged Bálint Junkuncz requested to merge issue/custom_elements-3426888:3426888-improve-ux into 3.x
1 file
+ 5
0
Compare changes
  • Side-by-side
  • Inline
@@ -88,6 +88,11 @@ class EntityCustomElementsDisplayEditForm extends CustomElementsEntityDisplayFor
@@ -88,6 +88,11 @@ class EntityCustomElementsDisplayEditForm extends CustomElementsEntityDisplayFor
'view_mode_name' => $display->getMode(),
'view_mode_name' => $display->getMode(),
];
];
 
$form['help'] = [
 
'#type' => 'markup',
 
'#markup' => $this->t('<p><em>Layout builder</em> is enabled for this view mode. Thus, for this view mode the configured layout sections and the contained blocks are getting rendered as custom element. Configure the layout to customize how the element should be built.</p>'),
 
];
 
$form['manage_layout'] = [
$form['manage_layout'] = [
'#type' => 'link',
'#type' => 'link',
'#title' => $this->t('Manage layout'),
'#title' => $this->t('Manage layout'),
Loading