public getIconLastChange ( ElggEntity $entity, string $size, string $type = 'icon' ) : integer | null | ||
$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' |
Résultat | integer | null | A unix timestamp of when the icon was last changed, or null if not set. |
public function getIconLastChange(ElggEntity $entity, $size, $type = 'icon')
{
$icon = $this->getIcon($entity, $size, $type);
if ($icon->exists()) {
return $icon->getModifiedTime();
}
}