Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / image / src / Plugin / ImageEffect / ConvertImageEffect.php
index 28d51792c81fa35a75d2cdcedeaa22f03013cfae..675ef3a4ea268cd63637e36c2f82a84d58c145c6 100644 (file)
@@ -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 @@ class ConvertImageEffect extends ConfigurableImageEffectBase {
    */
   public function getSummary() {
     $summary = [
-      '#markup' => Unicode::strtoupper($this->configuration['extension']),
+      '#markup' => mb_strtoupper($this->configuration['extension']),
     ];
     $summary += parent::getSummary();
 
@@ -64,7 +63,7 @@ class ConvertImageEffect extends ConfigurableImageEffectBase {
     $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',