src/Contao/View/Contao2BackendView/Subscriber/CheckPermission.php
private function getVisibilityConditionChain($property)
    {
        if (($chain = $property->getVisibleCondition())
            && ($chain instanceof PropertyConditionChain)
            && $chain->getConjunction() === PropertyConditionChain::AND_CONJUNCTION
        ) {
            return $chain;
        }

        $newChain = new PropertyConditionChain($chain ? [$chain] : []);
        $property->setVisibleCondition($newChain);

        return $newChain;
    }
private function getVisibilityConditionChain($property)
    {
        if (($chain = $property->getVisibleCondition())
            && ($chain instanceof PropertyConditionChain)
            && $chain->getConjunction() === PropertyConditionChain::AND_CONJUNCTION
        ) {
            return $chain;
        }

        $newChain = new PropertyConditionChain($chain ? [$chain] : []);
        $property->setVisibleCondition($newChain);

        return $newChain;
    }
private function getVisibilityConditionChain ( $ property ) { if ( ( $ chain = $ property -> getVisibleCondition ( ) ) && ( $ chain instanceof PropertyConditionChain ) && $ chain -> getConjunction ( ) === PropertyConditionChain :: AND_CONJUNCTION ) { return $ chain ; } $ newChain = new PropertyConditionChain ( $ chain ? [ $ chain ] : [ ] ) ; $ property -> setVisibleCondition ( $ newChain ) ; return $ newChain ; }
Retrieve the visibility condition chain or create an empty one if none exists.

@param PropertyInterface $property The property.

@return PropertyConditionChain
Retrieve the visibility condition chain or create an empty one if none exists .