You are here

private function MediaFile::getClass in MediaFront 7.2

Returns the media class for the media.

1 call to MediaFile::getClass()
MediaFile::__construct in ./MediaFile.php

File

./MediaFile.php, line 197

Class

MediaFile

Code

private function getClass() {

  // Return if this is a media or image class.
  if ($this->type) {
    return $this->type == 'image' ? 'image' : 'media';
  }
  return '';
}