private function getContaoExtra(PackageInterface $package, $key)
    {
        $extras = $package->getExtra();

        if (!isset($extras['contao']) || !isset($extras['contao'][$key])) {
            return null;
        }

        return $extras['contao'][$key];
    }
private function getContaoExtra(PackageInterface $package, $key)
    {
        $extras = $package->getExtra();

        if (!isset($extras['contao']) || !isset($extras['contao'][$key])) {
            return null;
        }

        return $extras['contao'][$key];
    }
private function getContaoExtra ( PackageInterface $ package , $ key ) { $ extras = $ package -> getExtra ( ) ; if ( ! isset ( $ extras [ 'contao' ] ) || ! isset ( $ extras [ 'contao' ] [ $ key ] ) ) { return null ; } return $ extras [ 'contao' ] [ $ key ] ; }
Retrieves a value from the package extra "contao" section.

@param PackageInterface $package The package to extract the section from.

@param string           $key     The key to obtain from the extra section.

@return mixed|null
Retrieves a value from the package extra contao section .