diff --git a/core/modules/responsive_image/src/ResponsiveImageStyleForm.php b/core/modules/responsive_image/src/ResponsiveImageStyleForm.php index 27eee09..cad19fe 100644 --- a/core/modules/responsive_image/src/ResponsiveImageStyleForm.php +++ b/core/modules/responsive_image/src/ResponsiveImageStyleForm.php @@ -115,12 +115,11 @@ public function form(array $form, FormStateInterface $form_state) { '#title' => $this->t('Type'), '#type' => 'radios', '#options' => array( - 'sizes' => $this->t('Select mutiple image styles and use the sizes attribute'), + 'sizes' => $this->t('Select mutiple image styles and use the sizes attribute.', array('@sizes_help' => 'https://www.drupal.org/documentation/modules/responsive_image')), 'image_style' => $this->t('Select a single image style'), '_none' => $this->t('Do not use this breakpoint'), ), '#default_value' => isset($image_style_mapping['image_mapping_type']) ? $image_style_mapping['image_mapping_type'] : '_none', - '#description' => $this->t('Learn more about the sizes attribute.', array('@sizes_help' => \Drupal::url('help.page', array('name' => 'responsive_image')))), ); $form['keyed_styles'][$breakpoint_id][$multiplier]['image_style'] = array( '#type' => 'select', @@ -138,7 +137,7 @@ public function form(array $form, FormStateInterface $form_state) { '#type' => 'textfield', '#title' => $this->t('Sizes'), '#default_value' => isset($image_style_mapping['image_mapping']['sizes']) ? $image_style_mapping['image_mapping']['sizes'] : '', - '#description' => $this->t('Enter the value for the sizes attribute: for example "(min-width:700px) 700px, 100vw)".'), + '#description' => $this->t('Enter the value for the sizes attribute: for example "(min-width:700px) 700px, 100vw)".', array('@sizes_help' => 'https://www.drupal.org/documentation/modules/responsive_image')), '#states' => array( 'visible' => array( ':input[name="keyed_styles[' . $breakpoint_id . '][' . $multiplier . '][image_mapping_type]"]' => array('value' => 'sizes'),