Skip to content
Snippets Groups Projects
Commit 1fc4c9c8 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #1837998 by Bojhan, xjm, dawehner, David Hernández: Show the embed display in the UI.

parent 129902be
No related branches found
No related tags found
No related merge requests found
...@@ -41,22 +41,20 @@ public function buildForm(array $form, array &$form_state) { ...@@ -41,22 +41,20 @@ public function buildForm(array $form, array &$form_state) {
$form['basic']['ui_show_master_display'] = array( $form['basic']['ui_show_master_display'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => $this->t('Always show the master display'), '#title' => $this->t('Always show the master (default) display'),
'#description' => $this->t('Advanced users of views may choose to see the master (i.e. default) display.'),
'#default_value' => $config->get('ui.show.master_display'), '#default_value' => $config->get('ui.show.master_display'),
); );
$form['basic']['ui_show_advanced_column'] = array( $form['basic']['ui_show_advanced_column'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => $this->t('Always show advanced display settings'), '#title' => $this->t('Always show advanced display settings'),
'#description' => $this->t('Default to showing advanced display settings, such as relationships and contextual filters.'),
'#default_value' => $config->get('ui.show.advanced_column'), '#default_value' => $config->get('ui.show.advanced_column'),
); );
$form['basic']['ui_show_display_embed'] = array( $form['basic']['ui_show_display_embed'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => $this->t('Show the embed display in the ui.'), '#title' => t('Allow embedded displays'),
'#description' => $this->t("Allow advanced user to use the embed view display. The plugin itself works if it's not visible in the ui"), '#description' => t('Embedded displays can be used in code via views_embed_view().'),
'#default_value' => $config->get('ui.show.display_embed'), '#default_value' => $config->get('ui.show.display_embed'),
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment