src/Contao/View/Contao2BackendView/TreePicker.php
protected function determineModelState(ModelInterface $model, $level)
    {
        $model->setMeta(DCGE::TREE_VIEW_LEVEL, $level);
        $model->setMeta(
            $model::SHOW_CHILDREN,
            $this->getTreeNodeStates()->isModelOpen(
                $model->getProviderName(),
                $model->getId()
            )
        );
    }
protected function determineModelState(ModelInterface $model, $level)
    {
        $model->setMeta(DCGE::TREE_VIEW_LEVEL, $level);
        $model->setMeta(
            $model::SHOW_CHILDREN,
            $this->getTreeNodeStates()->isModelOpen(
                $model->getProviderName(),
                $model->getId()
            )
        );
    }
protected function determineModelState ( ModelInterface $ model , $ level ) { $ model -> setMeta ( DCGE :: TREE_VIEW_LEVEL , $ level ) ; $ model -> setMeta ( $ model :: SHOW_CHILDREN , $ this -> getTreeNodeStates ( ) -> isModelOpen ( $ model -> getProviderName ( ) , $ model -> getId ( ) ) ) ; }
Check the state of a model and set the metadata accordingly.

@param ModelInterface $model The model of which the state shall be checked of.
@param int            $level The tree level the model is contained within.

@return void
Check the state of a model and set the metadata accordingly .