Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / comment / src / Plugin / migrate / source / d7 / CommentType.php
index 2ac7c97a05d6ff1cbf01b54d40606b31d20661e7..f022b4211af62479f2019f4e4730a12bf73231b9 100644 (file)
@@ -2,6 +2,8 @@
 
 namespace Drupal\comment\Plugin\migrate\source\d7;
 
+@trigger_error('CommentType is deprecated in Drupal 8.4.x and will be removed before Drupal 9.0.x. Use \Drupal\node\Plugin\migrate\source\d7\NodeType instead.', E_USER_DEPRECATED);
+
 use Drupal\comment\Plugin\Field\FieldType\CommentItemInterface;
 use Drupal\migrate\Row;
 use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;
@@ -11,8 +13,11 @@ use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;
  *
  * @MigrateSource(
  *   id = "d7_comment_type",
- *   source_provider = "comment"
+ *   source_module = "comment"
  * )
+ *
+ * @deprecated in Drupal 8.4.x, to be removed before Drupal 9.0.x. Use
+ * \Drupal\node\Plugin\migrate\source\d7\NodeType instead.
  */
 class CommentType extends DrupalSqlBase {