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

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

Returns the timestamp of when the icon was changed.
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'
Результат 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();
        }
    }