Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / migrate / src / Plugin / Exception / BadPluginDefinitionException.php
1 <?php
2
3 namespace Drupal\migrate\Plugin\Exception;
4
5 use Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException;
6
7 /**
8  * Defines a class for bad plugin definition exceptions.
9  */
10 class BadPluginDefinitionException extends InvalidPluginDefinitionException {
11
12   /**
13    * Constructs a BadPluginDefinitionException.
14    *
15    * For the remaining parameters see \Exception.
16    *
17    * @param string $plugin_id
18    *   The plugin ID of the mapper.
19    * @param string $property
20    *   The name of the property that is missing from the plugin.
21    *
22    * @see \Exception
23    */
24   public function __construct($plugin_id, $property, $code = 0, \Exception $previous = NULL) {
25     $message = sprintf('The %s plugin must define the %s property.', $plugin_id, $property);
26     parent::__construct($plugin_id, $message, $code, $previous);
27   }
28
29 }