MetaModels\DcGeneral\Events\MetaModel\CreateVariantButton::breadcrumb PHP 메소드

breadcrumb() 보호된 메소드

Get the breadcrumb navigation via event.
protected breadcrumb ( ContaoCommunityAlliance\DcGeneral\EnvironmentInterface $environment ) : string
$environment ContaoCommunityAlliance\DcGeneral\EnvironmentInterface The environment.
리턴 string
    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'][] = 'system/modules/dc-general/html/css/generalBreadcrumb.css';
        $objTemplate = new ContaoBackendViewTemplate('dcbe_general_breadcrumb');
        $objTemplate->elements = $arrReturn;
        return $objTemplate->parse();
    }