public function MediaTypeInterface::getField in Media entity 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.
1 method overrides MediaTypeInterface::getField()
- Generic::getField in src/
Plugin/ MediaEntity/ Type/ Generic.php - Gets a media-related field/value.
File
- src/
MediaTypeInterface.php, line 41
Class
- MediaTypeInterface
- Defines the interface for media types.
Namespace
Drupal\media_entityCode
public function getField(MediaInterface $media, $name);