src/CoreBundle/EventListener/DcGeneral/MetaModel/CreateVariantButtonListener.php
protected function breadcrumb(EnvironmentInterface $environment)
    {
        $event = new GetBreadcrumbEvent($environment);

        $environment->getEventDispatcher()->dispatch($event::NAME, $event);

        $arrReturn = $event->getElements();

        if (!is_array($arrReturn) || count($arrReturn) == 0) {
            return null;
        }

        $GLOBALS['TL_CSS'][] = 'bundles/ccadcgeneral/css/generalBreadcrumb.css';

        $objTemplate           = new ContaoBackendViewTemplate('dcbe_general_breadcrumb');
        $objTemplate->elements = $arrReturn;

        return $objTemplate->parse();
    }
protected function breadcrumb(EnvironmentInterface $environment)
    {
        $event = new GetBreadcrumbEvent($environment);

        $environment->getEventDispatcher()->dispatch($event::NAME, $event);

        $arrReturn = $event->getElements();

        if (!is_array($arrReturn) || count($arrReturn) == 0) {
            return null;
        }

        $GLOBALS['TL_CSS'][] = 'bundles/ccadcgeneral/css/generalBreadcrumb.css';

        $objTemplate           = new ContaoBackendViewTemplate('dcbe_general_breadcrumb');
        $objTemplate->elements = $arrReturn;

        return $objTemplate->parse();
    }
Get the breadcrumb navigation via event.

@param EnvironmentInterface $environment The environment.

@return string

@SuppressWarnings(PHPMD.Superglobals)
@SuppressWarnings(PHPMD.CamelCaseVariableName)