Admin_ObjectController::getLatestVersion PHP Метод

getLatestVersion() защищенный Метод

protected getLatestVersion ( Concrete $object ) : Concrete
$object Pimcore\Model\Object\Concrete
Результат Pimcore\Model\Object\Concrete
    protected function getLatestVersion(Object\Concrete $object)
    {
        $modificationDate = $object->getModificationDate();
        $latestVersion = $object->getLatestVersion();
        if ($latestVersion) {
            $latestObj = $latestVersion->loadData();
            if ($latestObj instanceof Object\Concrete) {
                $object = $latestObj;
                $object->setModificationDate($modificationDate);
                // set de modification-date from published version to compare it in js-frontend
            }
        }
        return $object;
    }