You are here

class PluginNotFoundException in Image Optimize (or ImageAPI Optimize) 4.x

Same name and namespace in other branches
  1. 8.3 src/Exception/PluginNotFoundException.php \Drupal\imageapi_optimize\Exception\PluginNotFoundException
  2. 8.2 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

Expanded class hierarchy of PluginNotFoundException

See also

\Drupal\Component\Plugin\Exception\PluginNotFoundException

1 file declares its use of PluginNotFoundException
ImageAPIOptimizeProcessorManager.php in src/ImageAPIOptimizeProcessorManager.php

File

src/Exception/PluginNotFoundException.php, line 14

Namespace

Drupal\imageapi_optimize\Exception
View 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