Mercurial > hg > isophonics-drupal-site
comparison core/modules/system/src/Tests/Entity/EntityDefinitionTestTrait.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 1fec387a4317 |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
3 namespace Drupal\system\Tests\Entity; | 3 namespace Drupal\system\Tests\Entity; |
4 | 4 |
5 use Drupal\Core\Field\BaseFieldDefinition; | 5 use Drupal\Core\Field\BaseFieldDefinition; |
6 use Drupal\entity_test\FieldStorageDefinition; | 6 use Drupal\entity_test\FieldStorageDefinition; |
7 | 7 |
8 @trigger_error(__NAMESPACE__ . '\EntityDefinitionTestTrait is deprecated in Drupal 8.6.x and will be removed before Drupal 9.0.0. Instead, use \Drupal\Tests\system\Functional\Entity\Traits\EntityDefinitionTestTrait. See https://www.drupal.org/node/2946549.', E_USER_DEPRECATED); | |
9 | |
8 /** | 10 /** |
9 * Provides some test methods used to update existing entity definitions. | 11 * Provides some test methods used to update existing entity definitions. |
12 * | |
13 * @deprecated in Drupal 8.6.x and will be removed before Drupal 9.0.0. | |
14 * Use \Drupal\Tests\system\Functional\Entity\Traits\EntityDefinitionTestTrait. | |
15 * | |
16 * @see https://www.drupal.org/node/2946549 | |
10 */ | 17 */ |
11 trait EntityDefinitionTestTrait { | 18 trait EntityDefinitionTestTrait { |
12 | 19 |
13 /** | 20 /** |
14 * Enables a new entity type definition. | 21 * Enables a new entity type definition. |