You are here

public function ImceFM::getThumbnailStyle in IMCE 8

Same name and namespace in other branches
  1. 8.2 src/ImceFM.php \Drupal\imce\ImceFM::getThumbnailStyle()

Returns thumbnail style.

1 call to ImceFM::getThumbnailStyle()
ImceFM::getFileProperties in src/ImceFM.php
Returns js properties of a file.

File

src/ImceFM.php, line 475

Class

ImceFM
Imce File Manager.

Namespace

Drupal\imce

Code

public function getThumbnailStyle() {
  if (!isset($this->thumbnailStyle)) {
    $this->thumbnailStyle = FALSE;
    if ($style_name = $this
      ->getConf('thumbnail_style')) {
      $this->thumbnailStyle = \Drupal::entityTypeManager()
        ->getStorage('image_style')
        ->load($style_name);
    }
  }
  return $this->thumbnailStyle;
}