Jackalope\Version\VersionManager::getBaseVersion PHP Method

getBaseVersion() public method

{@inheritDoc}
public getBaseVersion ( $absPath )
    public function getBaseVersion($absPath)
    {
        $node = $this->objectManager->getNodeByPath($absPath);
        try {
            //TODO: could check if node has versionable mixin type
            $uuid = $node->getProperty('jcr:baseVersion')->getString();
        } catch (PathNotFoundException $e) {
            throw new UnsupportedRepositoryOperationException("No jcr:baseVersion version for {$absPath}");
        }
        return $this->objectManager->getNodeByIdentifier($uuid, 'Version\\Version');
    }