public function Generic::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.
Overrides MediaTypeInterface::getField
File
- src/
Plugin/ MediaEntity/ Type/ Generic.php, line 30
Class
- Generic
- Provides generic media type.
Namespace
Drupal\media_entity\Plugin\MediaEntity\TypeCode
public function getField(MediaInterface $media, $name) {
return FALSE;
}