Commit 5680ad0d authored by alexpott's avatar alexpott
Browse files

Issue #2489400 by Bojhan, manauwarsheikh, yogen.prasad, Manjit.Singh, hylid:...

Issue #2489400 by Bojhan, manauwarsheikh, yogen.prasad, Manjit.Singh, hylid: Reduce duplication/unnecessary text from Exposed forms
parent 7159e9ca
......@@ -102,13 +102,12 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
'#tree' => TRUE,
'#title' => $this->t('Exposed options'),
'#input' => TRUE,
'#description' => $this->t('Exposing this options allows users to define their values in a exposed form when view is displayed'),
'#description' => $this->t('Allow user to control selected display options for this view.'),
);
$form['expose']['items_per_page'] = array(
'#type' => 'checkbox',
'#title' => $this->t('Expose items per page'),
'#description' => $this->t('When checked, users can determine how many items per page show in a view'),
'#title' => $this->t('Allow user to control the number of items displayed in this view'),
'#default_value' => $this->options['expose']['items_per_page'],
);
......@@ -116,7 +115,6 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
'#type' => 'textfield',
'#title' => $this->t('Items per page label'),
'#required' => TRUE,
'#description' => $this->t('Label to use in the exposed items per page form element.'),
'#default_value' => $this->options['expose']['items_per_page_label'],
'#states' => array(
'invisible' => array(
......@@ -141,15 +139,13 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
$form['expose']['items_per_page_options_all'] = array(
'#type' => 'checkbox',
'#title' => $this->t('Include all items option'),
'#description' => $this->t('If checked, an extra item will be included to items per page to display all items'),
'#title' => $this->t('Allow user to to display all items'),
'#default_value' => $this->options['expose']['items_per_page_options_all'],
);
$form['expose']['items_per_page_options_all_label'] = array(
'#type' => 'textfield',
'#title' => $this->t('All items label'),
'#description' => $this->t('Which label will be used to display all items'),
'#default_value' => $this->options['expose']['items_per_page_options_all_label'],
'#states' => array(
'invisible' => array(
......@@ -160,8 +156,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
$form['expose']['offset'] = array(
'#type' => 'checkbox',
'#title' => $this->t('Expose Offset'),
'#description' => $this->t('When checked, users can determine how many items should be skipped at the beginning.'),
'#title' => $this->t('Allow user to specify number of items skipped from beginning of this view.'),
'#default_value' => $this->options['expose']['offset'],
);
......@@ -169,7 +164,6 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
'#type' => 'textfield',
'#title' => $this->t('Offset label'),
'#required' => TRUE,
'#description' => $this->t('Label to use in the exposed offset form element.'),
'#default_value' => $this->options['expose']['offset_label'],
'#states' => array(
'invisible' => array(
......
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