You are here

class InvalidPluginDefinitionException in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Component/Plugin/Exception/InvalidPluginDefinitionException.php \Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

Defines a class for invalid plugin definition exceptions.

Hierarchy

Expanded class hierarchy of InvalidPluginDefinitionException

3 files declare their use of InvalidPluginDefinitionException
ConfigMapperManager.php in core/modules/config_translation/src/ConfigMapperManager.php
Contains \Drupal\config_translation\ConfigMapperManager.
EntityTypeManager.php in core/lib/Drupal/Core/Entity/EntityTypeManager.php
Contains \Drupal\Core\Entity\EntityTypeManager.
ImageToolkitOperationBase.php in core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationBase.php
Contains \Drupal\Core\ImageToolkit\ImageToolkitOperationBase.

File

core/lib/Drupal/Component/Plugin/Exception/InvalidPluginDefinitionException.php, line 13
Contains \Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException.

Namespace

Drupal\Component\Plugin\Exception
View source
class InvalidPluginDefinitionException extends PluginException {

  /**
   * The plugin ID of the mapper.
   *
   * @var string
   */
  protected $pluginId;

  /**
   * Constructs a InvalidPluginDefinitionException.
   *
   * @param string $plugin_id
   *   The plugin ID of the mapper.
   *
   * @see \Exception for the remaining parameters.
   */
  public function __construct($plugin_id, $message = '', $code = 0, \Exception $previous = NULL) {
    $this->pluginId = $plugin_id;
    parent::__construct($message, $code, $previous);
  }

  /**
   * Gets the plugin ID of the mapper that raised the exception.
   *
   * @return string
   *   The plugin ID.
   */
  public function getPluginId() {
    return $this->pluginId;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
InvalidPluginDefinitionException::$pluginId protected property The plugin ID of the mapper.
InvalidPluginDefinitionException::getPluginId public function Gets the plugin ID of the mapper that raised the exception.
InvalidPluginDefinitionException::__construct public function Constructs a InvalidPluginDefinitionException.