public function ImageToolkitManager::getDefaultToolkit in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/ImageToolkit/ImageToolkitManager.php \Drupal\Core\ImageToolkit\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 78 - Contains \Drupal\Core\ImageToolkit\ImageToolkitManager.
Class
- ImageToolkitManager
- Manages image toolkit plugins.
Namespace
Drupal\Core\ImageToolkitCode
public function getDefaultToolkit() {
if ($toolkit_id = $this
->getDefaultToolkitId()) {
return $this
->createInstance($toolkit_id);
}
return FALSE;
}