You are here

public function ImageToolkitBase::getSource in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/ImageToolkit/ImageToolkitBase.php \Drupal\Core\ImageToolkit\ImageToolkitBase::getSource()

Gets the source path of the image file.

Return value

string The source path of the image file, or an empty string if the source is not set.

Overrides ImageToolkitInterface::getSource

3 calls to ImageToolkitBase::getSource()
GDToolkit::load in core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php
Loads a GD resource from a file.
GDToolkit::parseFile in core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php
Determines if a file contains a valid image.
TestToolkit::parseFile in core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/TestToolkit.php
Determines if a file contains a valid image.

File

core/lib/Drupal/Core/ImageToolkit/ImageToolkitBase.php, line 94

Class

ImageToolkitBase
Provides a base class for image toolkit plugins.

Namespace

Drupal\Core\ImageToolkit

Code

public function getSource() {
  return $this->source;
}