You are here

public function MediaSubFormManager::getMediaEntityFieldComponents in Media Bulk Upload 8

Get the field components for the given media type.

Parameters

\Drupal\media_bulk_upload\Entity\MediaBulkConfigInterface $mediaBulkConfig: The media bulk config entity.

\Drupal\media\MediaTypeInterface $mediaType: The media type.

Return value

array List of field components.

Overrides MediaSubFormManagerInterface::getMediaEntityFieldComponents

1 call to MediaSubFormManager::getMediaEntityFieldComponents()
MediaSubFormManager::getFields in src/MediaSubFormManager.php

File

src/MediaSubFormManager.php, line 214

Class

MediaSubFormManager
Class MediaSubFormManager.

Namespace

Drupal\media_bulk_upload

Code

public function getMediaEntityFieldComponents(MediaBulkConfigInterface $mediaBulkConfig, MediaTypeInterface $mediaType) {
  $mediaFormDisplay = $this
    ->getMediaFormDisplay($mediaBulkConfig, $mediaType);
  $fieldComponents = $mediaFormDisplay
    ->getComponents();
  return array_keys($fieldComponents);
}