class InvalidPluginDefinitionException in Service Container 7.2
Same name and namespace in other branches
- 7 lib/Drupal/Component/Plugin/Exception/InvalidPluginDefinitionException.php \Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
Defines a class for invalid plugin definition exceptions.
Hierarchy
- class \Drupal\Component\Plugin\Exception\PluginException extends \Drupal\Component\Plugin\Exception\Exception implements ExceptionInterface
- class \Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
Expanded class hierarchy of InvalidPluginDefinitionException
File
- lib/
Drupal/ Component/ Plugin/ Exception/ InvalidPluginDefinitionException.php, line 13 - Contains \Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException.
Namespace
Drupal\Component\Plugin\ExceptionView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
InvalidPluginDefinitionException:: |
protected | property | The plugin ID of the mapper. | |
InvalidPluginDefinitionException:: |
public | function | Gets the plugin ID of the mapper that raised the exception. | |
InvalidPluginDefinitionException:: |
public | function | Constructs a InvalidPluginDefinitionException. |