Skip to content

Commit 693a0a6

Browse files
authored
The entity property can return NULL
1 parent f0172e8 commit 693a0a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stubs/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use Drupal\Core\TypedData\OptionsProviderInterface;
88

99
/**
1010
* @property string|integer $target_id
11-
* @property \Drupal\Core\Entity\EntityInterface $entity
11+
* @property \Drupal\Core\Entity\EntityInterface|null $entity
1212
*/
1313
class EntityReferenceItem extends FieldItemBase implements OptionsProviderInterface, PreconfiguredFieldUiOptionsInterface {
1414
}

0 commit comments

Comments
 (0)