public function TextimageInterface::setSourceImageFile in Textimage 8.3
Same name and namespace in other branches
- 8.4 src/TextimageInterface.php \Drupal\textimage\TextimageInterface::setSourceImageFile()
Sets the image source file.
Parameters
\Drupal\file\FileInterface $source_image_file: A file entity.
int|null $width: (optional) The source image width if known. Defaults to NULL.
int|null $height: (optional) The source image height if known. Defaults to NULL.
Return value
$this
1 method overrides TextimageInterface::setSourceImageFile()
- Textimage::setSourceImageFile in src/
Textimage.php - Sets the image source file.
File
- src/
TextimageInterface.php, line 68
Class
- TextimageInterface
- Provides an interface for Textimage objects.
Namespace
Drupal\textimageCode
public function setSourceImageFile(FileInterface $source_image_file, $width = NULL, $height = NULL);