src/Contao/View/Contao2BackendView/TreePicker.php
private function determineParentsOfValues()
    {
        $parents     = [];
        $environment = $this->getEnvironment();
        $mode        = $environment->getDataDefinition()->getBasicDefinition()->getMode();
        if (BasicDefinitionInterface::MODE_HIERARCHICAL !== $mode) {
            return [];
        }

        foreach ((array) $this->varValue as $value) {
            $dataDriver = $environment->getDataProvider();
            $this->parentsOf($dataDriver->fetch($dataDriver->getEmptyConfig()->setId($value)), $parents);
        }

        return $parents;
    }
private function determineParentsOfValues()
    {
        $parents     = [];
        $environment = $this->getEnvironment();
        $mode        = $environment->getDataDefinition()->getBasicDefinition()->getMode();
        if (BasicDefinitionInterface::MODE_HIERARCHICAL !== $mode) {
            return [];
        }

        foreach ((array) $this->varValue as $value) {
            $dataDriver = $environment->getDataProvider();
            $this->parentsOf($dataDriver->fetch($dataDriver->getEmptyConfig()->setId($value)), $parents);
        }

        return $parents;
    }
private function determineParentsOfValues ( ) { $ parents = [ ] ; $ environment = $ this -> getEnvironment ( ) ; $ mode = $ environment -> getDataDefinition ( ) -> getBasicDefinition ( ) -> getMode ( ) ; if ( BasicDefinitionInterface :: MODE_HIERARCHICAL !== $ mode ) { return [ ] ; } foreach ( ( array ) $ this -> varValue as $ value ) { $ dataDriver = $ environment -> getDataProvider ( ) ; $ this -> parentsOf ( $ dataDriver -> fetch ( $ dataDriver -> getEmptyConfig ( ) -> setId ( $ value ) ) , $ parents ) ; } return $ parents ; }
Determine all parents of all selected values.

@return array
Determine all parents of all selected values .