Update to Drupal 8.1.1. For more information, see https://www.drupal.org/node/2718713
This commit is contained in:
parent
c0a0d5a94c
commit
9eae24d844
669 changed files with 3873 additions and 1553 deletions
|
@ -317,7 +317,7 @@ class ImageItem extends FileItem {
|
|||
$image = \Drupal::service('image.factory')->get($this->entity->getFileUri());
|
||||
if ($image->isValid()) {
|
||||
$this->width = $image->getWidth();
|
||||
$this->height =$image->getHeight();
|
||||
$this->height = $image->getHeight();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -366,7 +366,7 @@ class ImageItem extends FileItem {
|
|||
'target_id' => $file->id(),
|
||||
'alt' => $random->sentences(4),
|
||||
'title' => $random->sentences(4),
|
||||
'width' =>$width,
|
||||
'width' => $width,
|
||||
'height' => $height,
|
||||
);
|
||||
return $values;
|
||||
|
|
|
@ -29,4 +29,3 @@ class ImageFieldWidgetTest extends ImageFieldTestBase {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ class ImageOnTranslatedEntityTest extends ImageFieldTestBase {
|
|||
$this->fieldName = strtolower($this->randomMachineName());
|
||||
$this->createImageField($this->fieldName, 'basicpage', [], ['title_field' => 1]);
|
||||
|
||||
// Create and login user.
|
||||
// Create and log in user.
|
||||
$permissions = array(
|
||||
'access administration pages',
|
||||
'administer content translation',
|
||||
|
|
Reference in a new issue