X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fcomment%2Fsrc%2FPlugin%2Fmigrate%2Fsource%2Fd6%2FCommentVariable.php;fp=web%2Fcore%2Fmodules%2Fcomment%2Fsrc%2FPlugin%2Fmigrate%2Fsource%2Fd6%2FCommentVariable.php;h=7b92da9961a95f8a22b58f9937b3cc38d97a19d4;hp=a56fb4dc218052c37cb852175c52fd4e416e3b15;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/modules/comment/src/Plugin/migrate/source/d6/CommentVariable.php b/web/core/modules/comment/src/Plugin/migrate/source/d6/CommentVariable.php index a56fb4dc2..7b92da996 100644 --- a/web/core/modules/comment/src/Plugin/migrate/source/d6/CommentVariable.php +++ b/web/core/modules/comment/src/Plugin/migrate/source/d6/CommentVariable.php @@ -2,13 +2,19 @@ namespace Drupal\comment\Plugin\migrate\source\d6; +@trigger_error('CommentVariable is deprecated in Drupal 8.4.x and will be removed before Drupal 9.0.x. Use \Drupal\node\Plugin\migrate\source\d6\NodeType instead.', E_USER_DEPRECATED); + use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase; use Drupal\migrate\Plugin\migrate\source\DummyQueryTrait; /** * @MigrateSource( - * id = "d6_comment_variable" + * id = "d6_comment_variable", + * source_module = "comment" * ) + * + * @deprecated in Drupal 8.4.x, to be removed before Drupal 9.0.x. Use + * \Drupal\node\Plugin\migrate\source\d6\NodeType instead. */ class CommentVariable extends DrupalSqlBase { @@ -24,7 +30,7 @@ class CommentVariable extends DrupalSqlBase { /** * {@inheritdoc} */ - public function count() { + public function count($refresh = FALSE) { return count($this->getCommentVariables()); }