Mercurial > hg > cmmr2012-drupal-site
annotate core/modules/simpletest/src/NodeCreationTrait.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | c75dbcec494b |
children |
rev | line source |
---|---|
Chris@0 | 1 <?php |
Chris@0 | 2 |
Chris@0 | 3 namespace Drupal\simpletest; |
Chris@0 | 4 |
Chris@5 | 5 @trigger_error(__NAMESPACE__ . '\NodeCreationTrait is deprecated in Drupal 8.4.x. Will be removed before Drupal 9.0.0. Use \Drupal\Tests\node\Traits\NodeCreationTrait instead. See https://www.drupal.org/node/2884454.', E_USER_DEPRECATED); |
Chris@5 | 6 |
Chris@0 | 7 use Drupal\Tests\node\Traits\NodeCreationTrait as BaseNodeCreationTrait; |
Chris@0 | 8 |
Chris@0 | 9 /** |
Chris@0 | 10 * Provides methods to create node based on default settings. |
Chris@0 | 11 * |
Chris@0 | 12 * This trait is meant to be used only by test classes. |
Chris@0 | 13 * |
Chris@0 | 14 * @deprecated in Drupal 8.4.x. Will be removed before Drupal 9.0.0. Use |
Chris@0 | 15 * \Drupal\Tests\node\Traits\NodeCreationTrait instead. |
Chris@0 | 16 * |
Chris@0 | 17 * @see https://www.drupal.org/node/2884454 |
Chris@0 | 18 */ |
Chris@0 | 19 trait NodeCreationTrait { |
Chris@0 | 20 |
Chris@0 | 21 use BaseNodeCreationTrait; |
Chris@0 | 22 |
Chris@0 | 23 } |