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

Issue #1977998 by Bojhan, areke: Clean up Administrative name and description.

parent 256f0c1f
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -35,7 +35,7 @@ public function getFormId() {
public function buildForm(array $form, array &$form_state) {
$view = $form_state['view'];
$form['#title'] = $this->t('View name and description');
$form['#title'] = $this->t('Name and description');
$form['#section'] = 'details';
$form['details'] = array(
......@@ -44,8 +44,7 @@ public function buildForm(array $form, array &$form_state) {
);
$form['details']['label'] = array(
'#type' => 'textfield',
'#title' => $this->t('Human-readable name'),
'#description' => $this->t('A descriptive human-readable name for this view. Spaces are allowed'),
'#title' => t('Administrative name'),
'#default_value' => $view->label(),
);
$form['details']['langcode'] = array(
......@@ -54,19 +53,18 @@ public function buildForm(array $form, array &$form_state) {
'#description' => $this->t('Language of labels and other textual elements in this view.'),
'#default_value' => $view->get('langcode'),
);
$form['details']['description'] = array(
'#type' => 'textfield',
'#title' => t('Administrative description'),
'#default_value' => $view->get('description'),
);
$form['details']['tag'] = array(
'#type' => 'textfield',
'#title' => $this->t('View tag'),
'#description' => $this->t('Optionally, enter a comma delimited list of tags for this view to use in filtering and sorting views on the administrative page.'),
'#title' => t('Administrative tags'),
'#description' => t('Enter a comma-separated list of words to describe your view.'),
'#default_value' => $view->get('tag'),
'#autocomplete_route_name' => 'views_ui.autocomplete',
);
$form['details']['description'] = array(
'#type' => 'textfield',
'#title' => $this->t('View description'),
'#description' => $this->t('This description will appear on the Views administrative UI to tell you what the view is about.'),
'#default_value' => $view->get('description'),
);
$view->getStandardButtons($form, $form_state, 'views_ui_edit_details_form');
return $form;
......
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