Mercurial > hg > isophonics-drupal-site
diff core/modules/migrate/tests/src/Kernel/NodeCommentCombinationTrait.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line diff
--- a/core/modules/migrate/tests/src/Kernel/NodeCommentCombinationTrait.php Thu Feb 28 13:21:36 2019 +0000 +++ b/core/modules/migrate/tests/src/Kernel/NodeCommentCombinationTrait.php Thu May 09 15:33:08 2019 +0100 @@ -2,6 +2,12 @@ namespace Drupal\Tests\migrate\Kernel; +/** + * @deprecated in Drupal 8.7.x, will be removed before Drupal 9.0.0. Use + * \Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase::migrateFields() + * instead. + */ + use Drupal\comment\Entity\CommentType; use Drupal\node\Entity\NodeType; @@ -20,6 +26,8 @@ * comment_node_{type}. */ protected function createNodeCommentCombination($node_type, $comment_type = NULL) { + @trigger_error('NodeCommentCombinationTrait::createNodeCommentCombination() is deprecated in Drupal 8.7.x, will be removed before Drupal 9.0.0. Use \Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase::migrateFields() instead.', E_USER_DEPRECATED); + if (!$comment_type) { $comment_type = "comment_node_$node_type"; }