CodeExplorer getLocalThumbnailUri example
switch ($name) { case 'default_name':
if ($title =
$this->
getMetadata($media, 'title'
)) { return $title;
} elseif ($url =
$this->
getMetadata($media, 'url'
)) { return $url;
} return parent::
getMetadata($media, 'default_name'
);
case 'thumbnail_uri':
return $this->
getLocalThumbnailUri($resource) ?: parent::
getMetadata($media, 'thumbnail_uri'
);
case 'type':
return $resource->
getType();
case 'title':
return $resource->
getTitle();
case 'author_name':
return $resource->
getAuthorName();
case 'author_url':