You are here

public function MediaTypeManager::getTargetFieldName in Media Bulk Upload 8

Get the target field name.

Parameters

\Drupal\media\MediaTypeInterface $mediaType: Media Type.

Return value

string Name of the field.

Overrides MediaTypeManagerInterface::getTargetFieldName

1 call to MediaTypeManager::getTargetFieldName()
MediaTypeManager::getTargetFieldSettings in src/MediaTypeManager.php
Get the target field settings for the media type.

File

src/MediaTypeManager.php, line 120

Class

MediaTypeManager
Class MediaTypeManager

Namespace

Drupal\media_bulk_upload

Code

public function getTargetFieldName(MediaTypeInterface $mediaType) {
  return $mediaType
    ->getSource()
    ->getConfiguration()['source_field'];
}