Elgg\EntityIconService::hasIcon PHP Метод

hasIcon() публичный Метод

Returns if the entity has an icon of the passed type.
public hasIcon ( ElggEntity $entity, string $size, string $type = 'icon' ) : boolean
$entity ElggEntity Entity that owns the icon
$size string The size of the icon
$type string The name of the icon. e.g., 'icon', 'cover_photo'
Результат boolean
    public function hasIcon(\ElggEntity $entity, $size, $type = 'icon')
    {
        return $this->getIcon($entity, $size, $type)->exists();
    }