You are here

public function ParagraphsSet::getIconUrl in Paragraphs Sets 8.2

Returns the icon's URL.

Return value

string|bool The icon's URL or FALSE if icon does not exits.

Overrides ParagraphsSetInterface::getIconUrl

File

src/Entity/ParagraphsSet.php, line 94

Class

ParagraphsSet
Defines the ParagraphsSet entity.

Namespace

Drupal\paragraphs_sets\Entity

Code

public function getIconUrl() {
  if ($image = $this
    ->getIconFile()) {
    return file_create_url($image
      ->getFileUri());
  }
  return FALSE;
}