EntityReferenceTestTrait.php
Same filename in other branches
Namespace
Drupal\Tests\field\TraitsFile
-
core/
modules/ field/ tests/ src/ Traits/ EntityReferenceTestTrait.php
View source
<?php
declare (strict_types=1);
namespace Drupal\Tests\field\Traits;
@trigger_error('The ' . __NAMESPACE__ . '\\EntityReferenceTestTrait is deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Instead, use \\Drupal\\Tests\\field\\Traits\\EntityReferenceFieldCreationTrait. See https://www.drupal.org/node/3401941', E_USER_DEPRECATED);
/**
* Provides common functionality for the EntityReference test classes.
*
* @deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Use
* \Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait instead.
*
* @see https://www.drupal.org/node/3401941
*/
trait EntityReferenceTestTrait {
use EntityReferenceFieldCreationTrait;
}
Traits
Title | Deprecated | Summary |
---|---|---|
EntityReferenceTestTrait | in drupal:10.2.0 and is removed from drupal:11.0.0. Use \Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait instead. |
Provides common functionality for the EntityReference test classes. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.