Skip to content
Snippets Groups Projects
Commit ebffeea7 authored by Joshua Sedler's avatar Joshua Sedler :cartwheel_tone2: Committed by Julian Pustkuchen
Browse files

Issue #3521009: Host entity type / bundle may not be "media/video" hard-coded

parent 4ec045d1
Branches
Tags
1 merge request!4Issue #3521009: Host entity type / bundle may not be "media/video" hard-coded
Pipeline #481990 passed with warnings
......@@ -236,7 +236,7 @@ class VidstackPlayerVideoFormatter extends FileMediaFormatterBase implements Fil
*/
public function getEntityImageFields(): array {
$imageFieldsArray = [];
$imageFields = array_filter($this->entityFieldManager->getFieldDefinitions('media', 'video'),
$imageFields = array_filter($this->entityFieldManager->getFieldDefinitions($this->fieldDefinition->getTargetEntityTypeId(), $this->fieldDefinition->getTargetBundle()),
function (FieldDefinitionInterface $field) {
return $field->getType() === 'image';
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment