ImageToolkitManager::getDefaultToolkit

public ImageToolkitManager::getDefaultToolkit()

Gets the default image toolkit.

Return value

\Drupal\Core\ImageToolkit\ImageToolkitInterface Object of the default toolkit, or FALSE on error.

File

core/lib/Drupal/Core/ImageToolkit/ImageToolkitManager.php, line 73

Class

ImageToolkitManager
Manages image toolkit plugins.

Namespace

Drupal\Core\ImageToolkit

Code

public function getDefaultToolkit() {
  if ($toolkit_id = $this->getDefaultToolkitId()) {
    return $this->createInstance($toolkit_id);
  }
  return FALSE;
}
doc_Drupal
2016-10-29 09:20:13
Comments
Leave a Comment

Please login to continue.