src/Controller/TreeNodeStates.php
public function isModelOpen($providerName, $modelId, $ignoreAllState = false)
    {
        if (!$ignoreAllState && isset($this->states['all']) && (1 === $this->states['all'])) {
            return true;
        }

        return (isset($this->states[$providerName][$modelId]) && $this->states[$providerName][$modelId])
            || (isset($this->implicitOpen[$providerName][$modelId]) && $this->implicitOpen[$providerName][$modelId]);
    }
public function isModelOpen($providerName, $modelId, $ignoreAllState = false)
    {
        if (!$ignoreAllState && isset($this->states['all']) && (1 === $this->states['all'])) {
            return true;
        }

        return (isset($this->states[$providerName][$modelId]) && $this->states[$providerName][$modelId])
            || (isset($this->implicitOpen[$providerName][$modelId]) && $this->implicitOpen[$providerName][$modelId]);
    }
public function isModelOpen ( $ providerName , $ modelId , $ ignoreAllState = false ) { if ( ! $ ignoreAllState && isset ( $ this -> states [ 'all' ] ) && ( 1 === $ this -> states [ 'all' ] ) ) { return true ; } return ( isset ( $ this -> states [ $ providerName ] [ $ modelId ] ) && $ this -> states [ $ providerName ] [ $ modelId ] ) || ( isset ( $ this -> implicitOpen [ $ providerName ] [ $ modelId ] ) && $ this -> implicitOpen [ $ providerName ] [ $ modelId ] ) ; }
Determine if the model is expanded.

@param string $providerName   The data provider name.
@param mixed  $modelId        The id of the model.
@param bool   $ignoreAllState If this is true, the "all open" flag will be ignored.

@return bool
Determine if the model is expanded .