You are here

public function Audio::getField in Media entity audio 8

Gets a media-related field/value.

Parameters

MediaInterface $media: Media object.

string $name: Name of field to fetch.

Return value

mixed Field value or FALSE if data unavailable.

Overrides MediaTypeInterface::getField

File

src/Plugin/MediaEntity/Type/Audio.php, line 55

Class

Audio
Provides media type plugin for Audio.

Namespace

Drupal\media_entity_audio\Plugin\MediaEntity\Type

Code

public function getField(MediaInterface $media, $name) {
  return FALSE;
}