class BadPluginDefinitionException
Same name in other branches
- 9 core/modules/migrate/src/Plugin/Exception/BadPluginDefinitionException.php \Drupal\migrate\Plugin\Exception\BadPluginDefinitionException
- 10 core/modules/migrate/src/Plugin/Exception/BadPluginDefinitionException.php \Drupal\migrate\Plugin\Exception\BadPluginDefinitionException
- 11.x core/modules/migrate/src/Plugin/Exception/BadPluginDefinitionException.php \Drupal\migrate\Plugin\Exception\BadPluginDefinitionException
Defines a class for bad plugin definition exceptions.
Hierarchy
- class \Drupal\Component\Plugin\Exception\PluginException extends \Drupal\Component\Plugin\Exception\Exception implements \Drupal\Component\Plugin\Exception\ExceptionInterface
- class \Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException extends \Drupal\Component\Plugin\Exception\PluginException
- class \Drupal\migrate\Plugin\Exception\BadPluginDefinitionException extends \Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
- class \Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException extends \Drupal\Component\Plugin\Exception\PluginException
Expanded class hierarchy of BadPluginDefinitionException
4 files declare their use of BadPluginDefinitionException
- CredentialForm.php in core/
modules/ migrate_drupal_ui/ src/ Form/ CredentialForm.php - MigrateFieldPluginManager.php in core/
modules/ migrate_drupal/ src/ Plugin/ MigrateFieldPluginManager.php - MigrationPluginManager.php in core/
modules/ migrate_drupal/ src/ MigrationPluginManager.php - MigrationProvidersExistTest.php in core/
modules/ migrate/ tests/ src/ Kernel/ Plugin/ MigrationProvidersExistTest.php
File
-
core/
modules/ migrate/ src/ Plugin/ Exception/ BadPluginDefinitionException.php, line 10
Namespace
Drupal\migrate\Plugin\ExceptionView source
class BadPluginDefinitionException extends InvalidPluginDefinitionException {
/**
* Constructs a BadPluginDefinitionException.
*
* For the remaining parameters see \Exception.
*
* @param string $plugin_id
* The plugin ID of the mapper.
* @param string $property
* The name of the property that is missing from the plugin.
*
* @see \Exception
*/
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);
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
BadPluginDefinitionException::__construct | public | function | Constructs a BadPluginDefinitionException. | Overrides InvalidPluginDefinitionException::__construct |
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. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.