You are here

public function InvalidPluginDefinitionException::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Component/Plugin/Exception/InvalidPluginDefinitionException.php \Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException::__construct()
  2. 9 core/lib/Drupal/Component/Plugin/Exception/InvalidPluginDefinitionException.php \Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException::__construct()

Constructs an InvalidPluginDefinitionException.

Parameters

string $plugin_id: The plugin ID of the mapper.

string $message: The exception message.

int $code: The exception code.

\Exception|null $previous: The previous throwable used for exception chaining.

See also

\Exception

File

core/lib/Drupal/Component/Plugin/Exception/InvalidPluginDefinitionException.php, line 31

Class

InvalidPluginDefinitionException
Defines a class for invalid plugin definition exceptions.

Namespace

Drupal\Component\Plugin\Exception

Code

public function __construct($plugin_id, $message = '', $code = 0, \Exception $previous = NULL) {
  $this->pluginId = $plugin_id;
  parent::__construct($message, $code, $previous);
}