public function GridStack::getIconUrl in GridStack 8.2
Same name and namespace in other branches
- 8 src/Entity/GridStack.php \Drupal\gridstack\Entity\GridStack::getIconUrl()
Returns the icon URL.
File
- src/
Entity/ GridStack.php, line 386
Class
- GridStack
- Defines the GridStack configuration entity.
Namespace
Drupal\gridstack\EntityCode
public function getIconUrl($absolute = FALSE) {
$url = '';
if ($uri = $this
->getIconUri()) {
$url = \file_url_transform_relative(\file_create_url($uri));
if (!$absolute) {
$url = ltrim($url, '/');
}
}
return $url;
}