You are here

public function ParagraphsType::getIconUrl in Paragraphs 8

Returns the icon's URL.

Return value

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

Overrides ParagraphsTypeInterface::getIconUrl

File

src/Entity/ParagraphsType.php, line 183

Class

ParagraphsType
Defines the ParagraphsType entity.

Namespace

Drupal\paragraphs\Entity

Code

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