class PluginNotFoundException in Image Optimize (or ImageAPI Optimize) 8.2
Same name and namespace in other branches
- 8.3 src/Exception/PluginNotFoundException.php \Drupal\imageapi_optimize\Exception\PluginNotFoundException
- 4.x src/Exception/PluginNotFoundException.php \Drupal\imageapi_optimize\Exception\PluginNotFoundException
Plugin not found exception so we can retrieve the plugin ID
@TOOD: Get this change into Drupal core.
Hierarchy
- class \Drupal\Component\Plugin\Exception\PluginException extends \Drupal\Component\Plugin\Exception\Exception implements ExceptionInterface
- class \Drupal\Component\Plugin\Exception\PluginNotFoundException
- class \Drupal\imageapi_optimize\Exception\PluginNotFoundException
- class \Drupal\Component\Plugin\Exception\PluginNotFoundException
Expanded class hierarchy of PluginNotFoundException
See also
\Drupal\Component\Plugin\Exception\PluginNotFoundException
1 file declares its use of PluginNotFoundException
File
- src/
Exception/ PluginNotFoundException.php, line 14
Namespace
Drupal\imageapi_optimize\ExceptionView source
class PluginNotFoundException extends CorePluginNotFoundException {
protected $pluginId;
/**
* @inheritDoc
*/
public function __construct($plugin_id, $message = '', $code = 0, \Exception $previous = NULL) {
parent::__construct($plugin_id, $message, $code, $previous);
$this->pluginId = $plugin_id;
}
/**
* @return mixed
*/
public function getPluginId() {
return $this->pluginId;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PluginNotFoundException:: |
protected | property | ||
PluginNotFoundException:: |
public | function | ||
PluginNotFoundException:: |
public | function |
@inheritDoc Overrides PluginNotFoundException:: |