src/Contao/Dca/Builder/Legacy/DcaReadingDataDefinitionBuilder.php
protected function getFromDca($path)
    {
        $chunks = \explode('/', \trim($path, '/'));
        $dca    = $this->dca;

        while (null !== ($chunk = \array_shift($chunks))) {
            if (!(\is_array($dca) && \array_key_exists($chunk, $dca))) {
                return null;
            }

            $dca = $dca[$chunk];
        }

        return $dca;
    }
protected function getFromDca($path)
    {
        $chunks = \explode('/', \trim($path, '/'));
        $dca    = $this->dca;

        while (null !== ($chunk = \array_shift($chunks))) {
            if (!(\is_array($dca) && \array_key_exists($chunk, $dca))) {
                return null;
            }

            $dca = $dca[$chunk];
        }

        return $dca;
    }
protected function getFromDca ( $ path ) { $ chunks = \ explode ( '/' , \ trim ( $ path , '/' ) ) ; $ dca = $ this -> dca ; while ( null !== ( $ chunk = \ array_shift ( $ chunks ) ) ) { if ( ! ( \ is_array ( $ dca ) && \ array_key_exists ( $ chunk , $ dca ) ) ) { return null ; } $ dca = $ dca [ $ chunk ] ; } return $ dca ; }
Read the specified sub path from the dca.

@param string $path The path from the Dca to read.

@return mixed
Read the specified sub path from the dca .