Contao\CoreBundle\Routing\UrlGenerator::getAutoItems PHP Method

getAutoItems() private method

Returns the auto_item key from the parameters or the global array.
private getAutoItems ( array $parameters ) : array
$parameters array
return array
    private function getAutoItems(array $parameters)
    {
        if (isset($parameters['auto_item'])) {
            return [$parameters['auto_item']];
        }
        if (isset($GLOBALS['TL_AUTO_ITEM']) && is_array($GLOBALS['TL_AUTO_ITEM'])) {
            return $GLOBALS['TL_AUTO_ITEM'];
        }
        return [];
    }