src/Kunstmaan/NodeBundle/Helper/NodeAdmin/NodeVersionLockHelper.php
protected function getNodeVersionLocksByNodeTranslation(NodeTranslation $nodeTranslation, $isPublicVersion, BaseUser $userToExclude = null)
    {
        $threshold = $this->container->getParameter('kunstmaan_node.lock_threshold');
        /** @var NodeVersionLockRepository $objectRepository */
        $objectRepository = $this->objectManager->getRepository('KunstmaanNodeBundle:NodeVersionLock');

        return $objectRepository->getLocksForNodeTranslation($nodeTranslation, $isPublicVersion, $threshold, $userToExclude);
    }
protected function getNodeVersionLocksByNodeTranslation(NodeTranslation $nodeTranslation, $isPublicVersion, BaseUser $userToExclude = null)
    {
        $threshold = $this->container->getParameter('kunstmaan_node.lock_threshold');
        /** @var NodeVersionLockRepository $objectRepository */
        $objectRepository = $this->objectManager->getRepository('KunstmaanNodeBundle:NodeVersionLock');

        return $objectRepository->getLocksForNodeTranslation($nodeTranslation, $isPublicVersion, $threshold, $userToExclude);
    }
protected function getNodeVersionLocksByNodeTranslation ( NodeTranslation $ nodeTranslation , $ isPublicVersion , BaseUser $ userToExclude = null ) { $ threshold = $ this -> container -> getParameter ( 'kunstmaan_node.lock_threshold' ) ; /** @var NodeVersionLockRepository $objectRepository */ $ objectRepository = $ this -> objectManager -> getRepository ( 'KunstmaanNodeBundle:NodeVersionLock' ) ; return $ objectRepository -> getLocksForNodeTranslation ( $ nodeTranslation , $ isPublicVersion , $ threshold , $ userToExclude ) ; }
When editing a node, check if there is a lock for this node translation.

@param NodeTranslation $nodeTranslation
@param bool            $isPublicVersion
@param BaseUser        $userToExclude

@return NodeVersionLock[]
When editing a node check if there is a lock for this node translation .