Update Composer, update everything
This commit is contained in:
parent
ea3e94409f
commit
dda5c284b6
19527 changed files with 1135420 additions and 351004 deletions
|
@ -5,7 +5,6 @@
|
|||
* Implement an image field, based on the file module's file field.
|
||||
*/
|
||||
|
||||
use Drupal\Component\Utility\Unicode;
|
||||
use Drupal\Core\Render\Element;
|
||||
|
||||
/**
|
||||
|
@ -64,7 +63,7 @@ function template_preprocess_image_formatter(&$variables) {
|
|||
$item = $variables['item'];
|
||||
|
||||
// Do not output an empty 'title' attribute.
|
||||
if (Unicode::strlen($item->title) != 0) {
|
||||
if (mb_strlen($item->title) != 0) {
|
||||
$variables['image']['#title'] = $item->title;
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue