Mercurial > hg > isophonics-drupal-site
diff core/modules/image/src/Plugin/ImageEffect/ConvertImageEffect.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line diff
--- a/core/modules/image/src/Plugin/ImageEffect/ConvertImageEffect.php Tue Jul 10 15:07:59 2018 +0100 +++ b/core/modules/image/src/Plugin/ImageEffect/ConvertImageEffect.php Thu Feb 28 13:21:36 2019 +0000 @@ -2,7 +2,6 @@ namespace Drupal\image\Plugin\ImageEffect; -use Drupal\Component\Utility\Unicode; use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Image\ImageInterface; use Drupal\image\ConfigurableImageEffectBase; @@ -41,7 +40,7 @@ */ public function getSummary() { $summary = [ - '#markup' => Unicode::strtoupper($this->configuration['extension']), + '#markup' => mb_strtoupper($this->configuration['extension']), ]; $summary += parent::getSummary(); @@ -64,7 +63,7 @@ $extensions = \Drupal::service('image.toolkit.manager')->getDefaultToolkit()->getSupportedExtensions(); $options = array_combine( $extensions, - array_map(['\Drupal\Component\Utility\Unicode', 'strtoupper'], $extensions) + array_map('mb_strtoupper', $extensions) ); $form['extension'] = [ '#type' => 'select',