Skip to content

Commit 3171a52

Browse files
jacktonkinmglaman
authored andcommitted
FileItems are references to files
1 parent 93e1184 commit 3171a52

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
namespace Drupal\file;
4+
5+
use Drupal\Core\Entity\EntityInterface;
6+
7+
interface FileInterface extends EntityInterface {
8+
9+
}

stubs/Drupal/file/Plugin/Field/FieldType/FileItem.stub

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
namespace Drupal\file\Plugin\Field\FieldType;
44

55
use Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem;
6+
use Drupal\file\FileInterface;
67

78
/**
9+
* @extends EntityReferenceItem<FileInterface>
810
* @property bool $display
911
* @property string $description
1012
*/

0 commit comments

Comments
 (0)