use Drupal\image\ImageStyleInterface;
use Drupal\Component\Utility\Crypt;
use Drupal\Component\Utility\UrlHelper;
-use Drupal\Component\Utility\Unicode;
use Drupal\Core\StreamWrapper\StreamWrapperInterface;
use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException;
use Drupal\Core\Entity\Entity\EntityViewDisplay;
* @ConfigEntityType(
* id = "image_style",
* label = @Translation("Image style"),
+ * label_collection = @Translation("Image styles"),
+ * label_singular = @Translation("image style"),
+ * label_plural = @Translation("image styles"),
+ * label_count = @PluralTranslation(
+ * singular = "@count image style",
+ * plural = "@count image styles",
+ * ),
* handlers = {
* "form" = {
* "add" = "Drupal\image\Form\ImageStyleAddForm",
// Only support the URI if its extension is supported by the current image
// toolkit.
return in_array(
- Unicode::strtolower(pathinfo($uri, PATHINFO_EXTENSION)),
+ mb_strtolower(pathinfo($uri, PATHINFO_EXTENSION)),
$this->getImageFactory()->getSupportedExtensions()
);
}