Commit d76697cd authored by alexpott's avatar alexpott

Issue #1182850 by xjm, Stefan Lehmann, jmcintyre, Bojhan: Remove full stops at...

Issue #1182850 by xjm, Stefan Lehmann, jmcintyre, Bojhan: Remove full stops at the end of checkbox options.
parent 0d1b8985
...@@ -43,7 +43,7 @@ public function isNegated() { ...@@ -43,7 +43,7 @@ public function isNegated() {
public function buildConfigurationForm(array $form, FormStateInterface $form_state) { public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
$form['negate'] = array( $form['negate'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => $this->t('Negate the condition.'), '#title' => $this->t('Negate the condition'),
'#default_value' => $this->configuration['negate'], '#default_value' => $this->configuration['negate'],
); );
return $form; return $form;
......
...@@ -38,7 +38,7 @@ public function settingsForm(array $form, FormStateInterface $form_state) { ...@@ -38,7 +38,7 @@ public function settingsForm(array $form, FormStateInterface $form_state) {
$elements['prefix_suffix'] = array( $elements['prefix_suffix'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => t('Display prefix and suffix.'), '#title' => t('Display prefix and suffix'),
'#default_value' => $this->getSetting('prefix_suffix'), '#default_value' => $this->getSetting('prefix_suffix'),
'#weight' => 10, '#weight' => 10,
); );
......
...@@ -13,7 +13,7 @@ views.field.comment: ...@@ -13,7 +13,7 @@ views.field.comment:
label: 'Link this field to its comment' label: 'Link this field to its comment'
link_to_entity: link_to_entity:
type: boolean type: boolean
label: 'Link field to the entity if there is no comment.' label: 'Link field to the entity if there is no comment'
views.field.comment_depth: views.field.comment_depth:
type: views_field type: views_field
...@@ -40,7 +40,7 @@ views.field.comment_link: ...@@ -40,7 +40,7 @@ views.field.comment_link:
label: 'Text to display' label: 'Text to display'
link_to_entity: link_to_entity:
type: views_field type: views_field
label: 'Link field to the entity if there is no comment.' label: 'Link field to the entity if there is no comment'
views.field.comment_link_approve: views.field.comment_link_approve:
type: views.field.comment_link type: views.field.comment_link
......
...@@ -69,7 +69,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) { ...@@ -69,7 +69,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
'#default_value' => $this->options['link_to_comment'], '#default_value' => $this->options['link_to_comment'],
); );
$form['link_to_entity'] = array( $form['link_to_entity'] = array(
'#title' => t('Link field to the entity if there is no comment.'), '#title' => t('Link field to the entity if there is no comment'),
'#type' => 'checkbox', '#type' => 'checkbox',
'#default_value' => $this->options['link_to_entity'], '#default_value' => $this->options['link_to_entity'],
); );
......
...@@ -73,7 +73,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) { ...@@ -73,7 +73,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
'#default_value' => $this->options['text'], '#default_value' => $this->options['text'],
); );
$form['link_to_entity'] = array( $form['link_to_entity'] = array(
'#title' => t('Link field to the entity if there is no comment.'), '#title' => t('Link field to the entity if there is no comment'),
'#type' => 'checkbox', '#type' => 'checkbox',
'#default_value' => $this->options['link_to_entity'], '#default_value' => $this->options['link_to_entity'],
); );
......
...@@ -209,7 +209,7 @@ function contact_form_user_admin_settings_alter(&$form, FormStateInterface $form ...@@ -209,7 +209,7 @@ function contact_form_user_admin_settings_alter(&$form, FormStateInterface $form
); );
$form['contact']['contact_default_status'] = array( $form['contact']['contact_default_status'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => t('Enable the personal contact form by default for new users.'), '#title' => t('Enable the personal contact form by default for new users'),
'#description' => t('Changing this setting will not affect existing users.'), '#description' => t('Changing this setting will not affect existing users.'),
'#default_value' => \Drupal::config('contact.settings')->get('user_default_enabled'), '#default_value' => \Drupal::config('contact.settings')->get('user_default_enabled'),
); );
......
...@@ -63,7 +63,7 @@ public function form(array $form, FormStateInterface $form_state) { ...@@ -63,7 +63,7 @@ public function form(array $form, FormStateInterface $form_state) {
); );
$form['selected'] = array( $form['selected'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => $this->t('Make this the default form.'), '#title' => $this->t('Make this the default form'),
'#default_value' => $default_form === $contact_form->id(), '#default_value' => $default_form === $contact_form->id(),
); );
......
...@@ -140,7 +140,7 @@ public function form(array $form, FormStateInterface $form_state) { ...@@ -140,7 +140,7 @@ public function form(array $form, FormStateInterface $form_state) {
$form['copy'] = array( $form['copy'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => $this->t('Send yourself a copy.'), '#title' => $this->t('Send yourself a copy'),
// Do not allow anonymous users to send themselves a copy, because it can // Do not allow anonymous users to send themselves a copy, because it can
// be abused to spam people. // be abused to spam people.
'#access' => $user->isAuthenticated(), '#access' => $user->isAuthenticated(),
......
...@@ -608,7 +608,7 @@ function content_translation_form_field_ui_field_instance_edit_form_alter(array ...@@ -608,7 +608,7 @@ function content_translation_form_field_ui_field_instance_edit_form_alter(array
$form['instance']['translatable'] = array( $form['instance']['translatable'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => t('Users may translate this field.'), '#title' => t('Users may translate this field'),
'#default_value' => $instance->isTranslatable(), '#default_value' => $instance->isTranslatable(),
'#weight' => -1, '#weight' => -1,
'#disabled' => !$bundle_is_translatable, '#disabled' => !$bundle_is_translatable,
......
...@@ -81,7 +81,7 @@ entity_view_display.field.number_decimal: ...@@ -81,7 +81,7 @@ entity_view_display.field.number_decimal:
label: 'Scale' label: 'Scale'
prefix_suffix: prefix_suffix:
type: boolean type: boolean
label: 'Display prefix and suffix.' label: 'Display prefix and suffix'
entity_view_display.field.number_integer: entity_view_display.field.number_integer:
type: entity_field_view_display_base type: entity_field_view_display_base
...@@ -96,7 +96,7 @@ entity_view_display.field.number_integer: ...@@ -96,7 +96,7 @@ entity_view_display.field.number_integer:
label: 'Thousand marker' label: 'Thousand marker'
prefix_suffix: prefix_suffix:
type: boolean type: boolean
label: 'Display prefix and suffix.' label: 'Display prefix and suffix'
entity_view_display.field.number_unformatted: entity_view_display.field.number_unformatted:
type: entity_field_view_display_base type: entity_field_view_display_base
......
...@@ -227,7 +227,7 @@ protected function configureFormTable(array &$form, $type) { ...@@ -227,7 +227,7 @@ protected function configureFormTable(array &$form, $type) {
$configurable = $this->languageTypes->get('configurable'); $configurable = $this->languageTypes->get('configurable');
$table_form['configurable'] = array( $table_form['configurable'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => $this->t('Customize %language_name language detection to differ from User interface text language detection settings.', array('%language_name' => $info['name'])), '#title' => $this->t('Customize %language_name language detection to differ from User interface text language detection settings', array('%language_name' => $info['name'])),
'#default_value' => in_array($type, $configurable), '#default_value' => in_array($type, $configurable),
'#attributes' => array('class' => array('language-customization-checkbox')), '#attributes' => array('class' => array('language-customization-checkbox')),
'#attached' => array( '#attached' => array(
......
...@@ -182,7 +182,7 @@ public function form(array $form, FormStateInterface $form_state) { ...@@ -182,7 +182,7 @@ public function form(array $form, FormStateInterface $form_state) {
); );
$form['display']['display_submitted'] = array( $form['display']['display_submitted'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => t('Display author and date information.'), '#title' => t('Display author and date information'),
'#default_value' => $type->displaySubmitted(), '#default_value' => $type->displaySubmitted(),
'#description' => t('Author username and publish date will be displayed.'), '#description' => t('Author username and publish date will be displayed.'),
); );
......
...@@ -152,7 +152,7 @@ public function buildForm(array $form, FormStateInterface $form_state) { ...@@ -152,7 +152,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
$form['bandwidth_optimization']['page_compression'] = array( $form['bandwidth_optimization']['page_compression'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => t('Compress cached pages.'), '#title' => t('Compress cached pages'),
'#default_value' => $config->get('response.gzip'), '#default_value' => $config->get('response.gzip'),
'#states' => array( '#states' => array(
'visible' => array( 'visible' => array(
...@@ -162,13 +162,13 @@ public function buildForm(array $form, FormStateInterface $form_state) { ...@@ -162,13 +162,13 @@ public function buildForm(array $form, FormStateInterface $form_state) {
); );
$form['bandwidth_optimization']['preprocess_css'] = array( $form['bandwidth_optimization']['preprocess_css'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => t('Aggregate CSS files.'), '#title' => t('Aggregate CSS files'),
'#default_value' => $config->get('css.preprocess'), '#default_value' => $config->get('css.preprocess'),
'#disabled' => $disabled, '#disabled' => $disabled,
); );
$form['bandwidth_optimization']['preprocess_js'] = array( $form['bandwidth_optimization']['preprocess_js'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => t('Aggregate JavaScript files.'), '#title' => t('Aggregate JavaScript files'),
'#default_value' => $config->get('js.preprocess'), '#default_value' => $config->get('js.preprocess'),
'#disabled' => $disabled, '#disabled' => $disabled,
); );
......
...@@ -103,7 +103,7 @@ public function buildForm(array $form, FormStateInterface $form_state) { ...@@ -103,7 +103,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
$configurable_timezones = $system_date->get('timezone.user.configurable'); $configurable_timezones = $system_date->get('timezone.user.configurable');
$form['timezone']['configurable_timezones'] = array( $form['timezone']['configurable_timezones'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => t('Users may set their own time zone.'), '#title' => t('Users may set their own time zone'),
'#default_value' => $configurable_timezones, '#default_value' => $configurable_timezones,
); );
...@@ -119,7 +119,7 @@ public function buildForm(array $form, FormStateInterface $form_state) { ...@@ -119,7 +119,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
); );
$form['timezone']['configurable_timezones_wrapper']['empty_timezone_message'] = array( $form['timezone']['configurable_timezones_wrapper']['empty_timezone_message'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => t('Remind users at login if their time zone is not set.'), '#title' => t('Remind users at login if their time zone is not set'),
'#default_value' => $system_date->get('timezone.user.warn'), '#default_value' => $system_date->get('timezone.user.warn'),
'#description' => t('Only applied if users may set their own time zone.') '#description' => t('Only applied if users may set their own time zone.')
); );
...@@ -129,9 +129,9 @@ public function buildForm(array $form, FormStateInterface $form_state) { ...@@ -129,9 +129,9 @@ public function buildForm(array $form, FormStateInterface $form_state) {
'#title' => t('Time zone for new users'), '#title' => t('Time zone for new users'),
'#default_value' => $system_date->get('timezone.user.default'), '#default_value' => $system_date->get('timezone.user.default'),
'#options' => array( '#options' => array(
DRUPAL_USER_TIMEZONE_DEFAULT => t('Default time zone.'), DRUPAL_USER_TIMEZONE_DEFAULT => t('Default time zone'),
DRUPAL_USER_TIMEZONE_EMPTY => t('Empty time zone.'), DRUPAL_USER_TIMEZONE_EMPTY => t('Empty time zone'),
DRUPAL_USER_TIMEZONE_SELECT => t('Users may set their own time zone at registration.'), DRUPAL_USER_TIMEZONE_SELECT => t('Users may set their own time zone at registration'),
), ),
'#description' => t('Only applied if users may set their own time zone.') '#description' => t('Only applied if users may set their own time zone.')
); );
......
...@@ -31,12 +31,12 @@ public function buildForm(array $form, FormStateInterface $form_state) { ...@@ -31,12 +31,12 @@ public function buildForm(array $form, FormStateInterface $form_state) {
$form = array( $form = array(
'checkbox_1_default_off' => array( 'checkbox_1_default_off' => array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => t('This checkbox defaults to unchecked.'), '#title' => t('This checkbox defaults to unchecked'),
'#default_value' => FALSE, '#default_value' => FALSE,
), ),
'checkbox_1_default_on' => array( 'checkbox_1_default_on' => array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => t('This checkbox defaults to checked.'), '#title' => t('This checkbox defaults to checked'),
'#default_value' => TRUE, '#default_value' => TRUE,
), ),
'text_1' => array( 'text_1' => array(
...@@ -60,12 +60,12 @@ public function buildForm(array $form, FormStateInterface $form_state) { ...@@ -60,12 +60,12 @@ public function buildForm(array $form, FormStateInterface $form_state) {
$form += array( $form += array(
'checkbox_2_default_off' => array( 'checkbox_2_default_off' => array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => t('This checkbox defaults to unchecked.'), '#title' => t('This checkbox defaults to unchecked'),
'#default_value' => FALSE, '#default_value' => FALSE,
), ),
'checkbox_2_default_on' => array( 'checkbox_2_default_on' => array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => t('This checkbox defaults to checked.'), '#title' => t('This checkbox defaults to checked'),
'#default_value' => TRUE, '#default_value' => TRUE,
), ),
'text_2' => array( 'text_2' => array(
......
...@@ -10,7 +10,7 @@ entity_view_display.field.telephone_link: ...@@ -10,7 +10,7 @@ entity_view_display.field.telephone_link:
mapping: mapping:
title: title:
type: label type: label
label: 'Title to replace basic numeric telephone number display.' label: 'Title to replace basic numeric telephone number display'
entity_form_display.field.telephone_default: entity_form_display.field.telephone_default:
type: entity_field_form_display_base type: entity_field_form_display_base
......
...@@ -39,7 +39,7 @@ public static function defaultSettings() { ...@@ -39,7 +39,7 @@ public static function defaultSettings() {
public function settingsForm(array $form, FormStateInterface $form_state) { public function settingsForm(array $form, FormStateInterface $form_state) {
$elements['title'] = array( $elements['title'] = array(
'#type' => 'textfield', '#type' => 'textfield',
'#title' => t('Title to replace basic numeric telephone number display.'), '#title' => t('Title to replace basic numeric telephone number display'),
'#default_value' => $this->getSetting('title'), '#default_value' => $this->getSetting('title'),
); );
......
...@@ -12,7 +12,7 @@ user.settings: ...@@ -12,7 +12,7 @@ user.settings:
label: 'Name' label: 'Name'
verify_mail: verify_mail:
type: boolean type: boolean
label: 'Require email verification when a visitor creates an account.' label: 'Require email verification when a visitor creates an account'
notify: notify:
type: mapping type: mapping
label: 'Notify user' label: 'Notify user'
...@@ -25,7 +25,7 @@ user.settings: ...@@ -25,7 +25,7 @@ user.settings:
label: 'Notify user when password reset' label: 'Notify user when password reset'
status_activated: status_activated:
type: boolean type: boolean
label: 'Notify user when account is activated.' label: 'Notify user when account is activated'
status_blocked: status_blocked:
type: boolean type: boolean
label: 'Account blocked' label: 'Account blocked'
...@@ -46,7 +46,7 @@ user.settings: ...@@ -46,7 +46,7 @@ user.settings:
label: 'Who can register accounts?' label: 'Who can register accounts?'
signatures: signatures:
type: boolean type: boolean
label: 'Enable signatures.' label: 'Enable signatures'
cancel_method: cancel_method:
type: string type: string
label: 'When cancelling a user account' label: 'When cancelling a user account'
......
...@@ -128,7 +128,7 @@ public function buildForm(array $form, FormStateInterface $form_state) { ...@@ -128,7 +128,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
); );
$form['registration_cancellation']['user_email_verification'] = array( $form['registration_cancellation']['user_email_verification'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => $this->t('Require email verification when a visitor creates an account.'), '#title' => $this->t('Require email verification when a visitor creates an account'),
'#default_value' => $config->get('verify_mail'), '#default_value' => $config->get('verify_mail'),
'#description' => $this->t('New users will be required to validate their email address prior to logging into the site, and will be assigned a system-generated password. With this setting disabled, users will be logged in immediately upon registering, and may select their own passwords during registration.') '#description' => $this->t('New users will be required to validate their email address prior to logging into the site, and will be assigned a system-generated password. With this setting disabled, users will be logged in immediately upon registering, and may select their own passwords during registration.')
); );
...@@ -163,7 +163,7 @@ public function buildForm(array $form, FormStateInterface $form_state) { ...@@ -163,7 +163,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
); );
$form['personalization']['user_signatures'] = array( $form['personalization']['user_signatures'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => $this->t('Enable signatures.'), '#title' => $this->t('Enable signatures'),
'#default_value' => $filter_exists ? $config->get('signatures') : 0, '#default_value' => $filter_exists ? $config->get('signatures') : 0,
'#access' => $filter_exists, '#access' => $filter_exists,
); );
...@@ -293,7 +293,7 @@ public function buildForm(array $form, FormStateInterface $form_state) { ...@@ -293,7 +293,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
); );
$form['email_activated']['user_mail_status_activated_notify'] = array( $form['email_activated']['user_mail_status_activated_notify'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => $this->t('Notify user when account is activated.'), '#title' => $this->t('Notify user when account is activated'),
'#default_value' => $config->get('notify.status_activated'), '#default_value' => $config->get('notify.status_activated'),
); );
$form['email_activated']['settings'] = array( $form['email_activated']['settings'] = array(
...@@ -326,7 +326,7 @@ public function buildForm(array $form, FormStateInterface $form_state) { ...@@ -326,7 +326,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
); );
$form['email_blocked']['user_mail_status_blocked_notify'] = array( $form['email_blocked']['user_mail_status_blocked_notify'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => $this->t('Notify user when account is blocked.'), '#title' => $this->t('Notify user when account is blocked'),
'#default_value' => $config->get('notify.status_blocked'), '#default_value' => $config->get('notify.status_blocked'),
); );
$form['email_blocked']['settings'] = array( $form['email_blocked']['settings'] = array(
...@@ -378,7 +378,7 @@ public function buildForm(array $form, FormStateInterface $form_state) { ...@@ -378,7 +378,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
); );
$form['email_canceled']['user_mail_status_canceled_notify'] = array( $form['email_canceled']['user_mail_status_canceled_notify'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => $this->t('Notify user when account is canceled.'), '#title' => $this->t('Notify user when account is canceled'),
'#default_value' => $config->get('notify.status_canceled'), '#default_value' => $config->get('notify.status_canceled'),
); );
$form['email_canceled']['settings'] = array( $form['email_canceled']['settings'] = array(
......
...@@ -92,7 +92,7 @@ public function buildForm(array $form, FormStateInterface $form_state) { ...@@ -92,7 +92,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
$override_access = $admin_access && ($this->entity->id() != $user->id()); $override_access = $admin_access && ($this->entity->id() != $user->id());
$form['user_cancel_confirm'] = array( $form['user_cancel_confirm'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => $this->t('Require email confirmation to cancel account.'), '#title' => $this->t('Require email confirmation to cancel account'),
'#default_value' => !$override_access, '#default_value' => !$override_access,
'#access' => $override_access, '#access' => $override_access,
'#description' => $this->t('When enabled, the user must confirm the account cancellation via email.'), '#description' => $this->t('When enabled, the user must confirm the account cancellation via email.'),
...@@ -101,7 +101,7 @@ public function buildForm(array $form, FormStateInterface $form_state) { ...@@ -101,7 +101,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
$default_notify = $this->config('user.settings')->get('notify.status_canceled'); $default_notify = $this->config('user.settings')->get('notify.status_canceled');
$form['user_cancel_notify'] = array( $form['user_cancel_notify'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => $this->t('Notify user when account is canceled.'), '#title' => $this->t('Notify user when account is canceled'),
'#default_value' => ($override_access ? FALSE : $default_notify), '#default_value' => ($override_access ? FALSE : $default_notify),
'#access' => $override_access && $default_notify, '#access' => $override_access && $default_notify,
'#description' => $this->t('When enabled, the user will receive an email notification after the account has been canceled.'), '#description' => $this->t('When enabled, the user will receive an email notification after the account has been canceled.'),
......
...@@ -148,14 +148,14 @@ public function buildForm(array $form, FormStateInterface $form_state) { ...@@ -148,14 +148,14 @@ public function buildForm(array $form, FormStateInterface $form_state) {
// Allow to send the account cancellation confirmation mail. // Allow to send the account cancellation confirmation mail.
$form['user_cancel_confirm'] = array( $form['user_cancel_confirm'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => $this->t('Require email confirmation to cancel account.'), '#title' => $this->t('Require email confirmation to cancel account'),
'#default_value' => FALSE, '#default_value' => FALSE,
'#description' => $this->t('When enabled, the user must confirm the account cancellation via email.'), '#description' => $this->t('When enabled, the user must confirm the account cancellation via email.'),
); );
// Also allow to send account canceled notification mail, if enabled. // Also allow to send account canceled notification mail, if enabled.
$form['user_cancel_notify'] = array( $form['user_cancel_notify'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => $this->t('Notify user when account is canceled.'), '#title' => $this->t('Notify user when account is canceled'),
'#default_value' => FALSE, '#default_value' => FALSE,
'#access' => $this->config('user.settings')->get('notify.status_canceled'), '#access' => $this->config('user.settings')->get('notify.status_canceled'),
'#description' => $this->t('When enabled, the user will receive an email notification after the account has been canceled.'), '#description' => $this->t('When enabled, the user will receive an email notification after the account has been canceled.'),
......
...@@ -441,8 +441,8 @@ function testMassUserCancelByAdmin() { ...@@ -441,8 +441,8 @@ function testMassUserCancelByAdmin() {
$this->drupalPostForm('admin/people', $edit, t('Apply')); $this->drupalPostForm('admin/people', $edit, t('Apply'));
$this->assertText(t('Are you sure you want to cancel these user accounts?'), 'Confirmation form to cancel accounts displayed.'); $this->assertText(t('Are you sure you want to cancel these user accounts?'), 'Confirmation form to cancel accounts displayed.');
$this->assertText(t('When cancelling these accounts'), 'Allows to select account cancellation method.'); $this->assertText(t('When cancelling these accounts'), 'Allows to select account cancellation method.');
$this->assertText(t('Require email confirmation to cancel account.'), 'Allows to send confirmation mail.'); $this->assertText(t('Require email confirmation to cancel account'), 'Allows to send confirmation mail.');
$this->assertText(t('Notify user when account is canceled.'), 'Allows to send notification mail.'); $this->assertText(t('Notify user when account is canceled'), 'Allows to send notification mail.');
// Confirm deletion. // Confirm deletion.
$this->drupalPostForm(NULL, NULL, t('Cancel accounts')); $this->drupalPostForm(NULL, NULL, t('Cancel accounts'));
......
...@@ -532,7 +532,7 @@ views_field: ...@@ -532,7 +532,7 @@ views_field:
label: 'Add "…" at the end of trimmed text' label: 'Add "…" at the end of trimmed text'
more_link: more_link:
type: boolean type: boolean
label: 'Add a read-more link if output is trimmed.' label: 'Add a read-more link if output is trimmed'
more_link_text: more_link_text:
type: label type: label
label: 'More link label' label: 'More link label'
......
...@@ -64,7 +64,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) { ...@@ -64,7 +64,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
$form['reset_button'] = array( $form['reset_button'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => t('Include reset button (resets all applied exposed filters).'), '#title' => t('Include reset button (resets all applied exposed filters)'),
'#default_value' => $this->options['reset_button'], '#default_value' => $this->options['reset_button'],
); );
......
...@@ -968,7 +968,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) { ...@@ -968,7 +968,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
$form['alter']['more_link'] = array( $form['alter']['more_link'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => t('Add a read-more link if output is trimmed.'), '#title' => t('Add a read-more link if output is trimmed'),
'#default_value' => $this->options['alter']['more_link'], '#default_value' => $this->options['alter']['more_link'],
'#states' => array( '#states' => array(
'visible' => array( 'visible' => array(
......
...@@ -149,7 +149,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) { ...@@ -149,7 +149,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
$form['subquery_regenerate'] = array( $form['subquery_regenerate'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => t('Generate subquery each time view is run.'), '#title' => t('Generate subquery each time view is run'),
'#default_value' => $this->options['subquery_regenerate'], '#default_value' => $this->options['subquery_regenerate'],
'#description' => t('Will re-generate the subquery for this relationship every time the view is run, instead of only when these options are saved. Use for testing if you are making changes elsewhere. WARNING: seriously impairs performance.'), '#description' => t('Will re-generate the subquery for this relationship every time the view is run, instead of only when these options are saved. Use for testing if you are making changes elsewhere. WARNING: seriously impairs performance.'),
); );
......
...@@ -37,7 +37,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) { ...@@ -37,7 +37,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
$form['test_enable'] = array( $form['test_enable'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => t('Controls whether the filter plugin should be active.'), '#title' => t('Controls whether the filter plugin should be active'),
'#default_value' => $this->options['test_enable'], '#default_value' => $this->options['test_enable'],
); );
} }
......
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