namespace Drupal\migrate_drupal\Plugin;
use Drupal\Component\Plugin\Exception\PluginNotFoundException;
+use Drupal\migrate\Plugin\Exception\BadPluginDefinitionException;
use Drupal\migrate\Plugin\MigratePluginManager;
use Drupal\migrate\Plugin\MigrationInterface;
throw new PluginNotFoundException($field_type);
}
+ /**
+ * {@inheritdoc}
+ */
+ public function processDefinition(&$definition, $plugin_id) {
+ parent::processDefinition($definition, $plugin_id);
+
+ foreach (['core', 'source_module', 'destination_module'] as $required_property) {
+ if (empty($definition[$required_property])) {
+ throw new BadPluginDefinitionException($plugin_id, $required_property);
+ }
+ }
+ }
+
}