function ImageInterface::getSource

Same name in other branches
  1. 9 core/lib/Drupal/Core/Image/ImageInterface.php \Drupal\Core\Image\ImageInterface::getSource()
  2. 10 core/lib/Drupal/Core/Image/ImageInterface.php \Drupal\Core\Image\ImageInterface::getSource()
  3. 11.x core/lib/Drupal/Core/Image/ImageInterface.php \Drupal\Core\Image\ImageInterface::getSource()

Retrieves the source path of the image file.

Return value

string The source path of the image file. An empty string if the source is not set.

1 method overrides ImageInterface::getSource()
Image::getSource in core/lib/Drupal/Core/Image/Image.php
Retrieves the source path of the image file.

File

core/lib/Drupal/Core/Image/ImageInterface.php, line 58

Class

ImageInterface
Provides an interface for image objects.

Namespace

Drupal\Core\Image

Code

public function getSource();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.