Issue #3216106 by paulocs, Gauravmahlawat, guilhermevp, AaronMcHale, anmolgoyal74: Add a description to the Extension field in ConvertImageEffect

merge-requests/852/head
catch 2021-06-24 12:25:22 +01:00
parent 5dccbedb1b
commit 4880807b11
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ use Drupal\image\ConfigurableImageEffectBase;
* @ImageEffect( * @ImageEffect(
* id = "image_convert", * id = "image_convert",
* label = @Translation("Convert"), * label = @Translation("Convert"),
* description = @Translation("Converts an image between extensions (e.g. from PNG to JPEG).") * description = @Translation("Converts an image to a format (such as JPEG).")
* ) * )
*/ */
class ConvertImageEffect extends ConfigurableImageEffectBase { class ConvertImageEffect extends ConfigurableImageEffectBase {
@ -67,7 +67,7 @@ class ConvertImageEffect extends ConfigurableImageEffectBase {
); );
$form['extension'] = [ $form['extension'] = [
'#type' => 'select', '#type' => 'select',
'#title' => t('Extension'), '#title' => t('Convert to'),
'#default_value' => $this->configuration['extension'], '#default_value' => $this->configuration['extension'],
'#required' => TRUE, '#required' => TRUE,
'#options' => $options, '#options' => $options,