src/Contao/View/Contao2BackendView/BaseView.php
public function breadcrumb()
    {
        $environment = $this->getEnvironment();

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

        $elements = $event->getElements();

        if (!\is_array($elements) || !\count($elements)) {
            return null;
        }

        $GLOBALS['TL_CSS']['cca.dc-general.generalBreadcrumb'] = 'bundles/ccadcgeneral/css/generalBreadcrumb.css';

        return $this->getTemplate('dcbe_general_breadcrumb')
            ->set('elements', $elements)
            ->parse();
    }
public function breadcrumb()
    {
        $environment = $this->getEnvironment();

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

        $elements = $event->getElements();

        if (!\is_array($elements) || !\count($elements)) {
            return null;
        }

        $GLOBALS['TL_CSS']['cca.dc-general.generalBreadcrumb'] = 'bundles/ccadcgeneral/css/generalBreadcrumb.css';

        return $this->getTemplate('dcbe_general_breadcrumb')
            ->set('elements', $elements)
            ->parse();
    }
public function breadcrumb ( ) { $ environment = $ this -> getEnvironment ( ) ; $ event = new GetBreadcrumbEvent ( $ environment ) ; $ environment -> getEventDispatcher ( ) -> dispatch ( $ event :: NAME , $ event ) ; $ elements = $ event -> getElements ( ) ; if ( ! \ is_array ( $ elements ) || ! \ count ( $ elements ) ) { return null ; } $ GLOBALS [ 'TL_CSS' ] [ 'cca.dc-general.generalBreadcrumb' ] = 'bundles/ccadcgeneral/css/generalBreadcrumb.css' ; return $ this -> getTemplate ( 'dcbe_general_breadcrumb' ) -> set ( 'elements' , $ elements ) -> parse ( ) ; }
Get the breadcrumb navigation via event.

@return string

@SuppressWarnings(PHPMD.Superglobals)
@SuppressWarnings(PHPMD.CamelCaseVariableName)
Get the breadcrumb navigation via event .