protected function Document::createSourceFieldStorage in Media entity document 8
File
- src/
Plugin/ MediaEntity/ Type/ Document.php, line 102
Class
- Document
- Provides media type plugin for Document.
Namespace
Drupal\media_entity_document\Plugin\MediaEntity\TypeCode
protected function createSourceFieldStorage() {
return $this->entityTypeManager
->getStorage('field_storage_config')
->create([
'entity_type' => 'media',
'field_name' => $this
->getSourceFieldName(),
'type' => 'file',
]);
}