Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. BadPluginDefinitionException.php

function BadPluginDefinitionException::__construct

Constructs a BadPluginDefinitionException.

Parameters

string $plugin_id: The plugin ID of the mapper.

string $property: The name of the property that is missing from the plugin.

int $code: (optional) The exception code. Defaults to 0.

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

Overrides InvalidPluginDefinitionException::__construct

See also

\Exception

File

core/modules/migrate/src/Plugin/Exception/BadPluginDefinitionException.php, line 26

Class

BadPluginDefinitionException
Defines a class for bad plugin definition exceptions.

Namespace

Drupal\migrate\Plugin\Exception

Code

public function __construct($plugin_id, $property, $code = 0, ?\Exception $previous = NULL) {
    $message = sprintf('The %s plugin must define the %s property.', $plugin_id, $property);
    parent::__construct($plugin_id, $message, $code, $previous);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal