src/Contao/View/Contao2BackendView/Subscriber/WidgetBuilder.php
protected function getListWizard()
    {
        $environment = $this->getEnvironment();
        $dispatcher  = $environment->getEventDispatcher();
        $defName     = $environment->getDataDefinition()->getName();
        $translator  = $environment->getTranslator();

        $urlEvent = new AddToUrlEvent('key=list');

        $importListEvent = new GenerateHtmlEvent(
            'tablewizard.svg',
            $translator->translate('importList.0', $defName),
            'style="vertical-align:text-bottom;"'
        );

        $dispatcher->dispatch(ContaoEvents::BACKEND_ADD_TO_URL, $urlEvent);
        $dispatcher->dispatch(ContaoEvents::IMAGE_GET_HTML, $importListEvent);

        return \sprintf(
            ' <a href="%s" title="%s" onclick="Backend.getScrollOffset();">%s</a>',
            \ampersand($urlEvent->getUrl()),
            StringUtil::specialchars($translator->translate('importList.1', $defName)),
            $importListEvent->getHtml()
        );
    }
protected function getListWizard()
    {
        $environment = $this->getEnvironment();
        $dispatcher  = $environment->getEventDispatcher();
        $defName     = $environment->getDataDefinition()->getName();
        $translator  = $environment->getTranslator();

        $urlEvent = new AddToUrlEvent('key=list');

        $importListEvent = new GenerateHtmlEvent(
            'tablewizard.svg',
            $translator->translate('importList.0', $defName),
            'style="vertical-align:text-bottom;"'
        );

        $dispatcher->dispatch(ContaoEvents::BACKEND_ADD_TO_URL, $urlEvent);
        $dispatcher->dispatch(ContaoEvents::IMAGE_GET_HTML, $importListEvent);

        return \sprintf(
            ' <a href="%s" title="%s" onclick="Backend.getScrollOffset();">%s</a>',
            \ampersand($urlEvent->getUrl()),
            StringUtil::specialchars($translator->translate('importList.1', $defName)),
            $importListEvent->getHtml()
        );
    }
protected function getListWizard ( ) { $ environment = $ this -> getEnvironment ( ) ; $ dispatcher = $ environment -> getEventDispatcher ( ) ; $ defName = $ environment -> getDataDefinition ( ) -> getName ( ) ; $ translator = $ environment -> getTranslator ( ) ; $ urlEvent = new AddToUrlEvent ( 'key=list' ) ; $ importListEvent = new GenerateHtmlEvent ( 'tablewizard.svg' , $ translator -> translate ( 'importList.0' , $ defName ) , 'style="vertical-align:text-bottom;"' ) ; $ dispatcher -> dispatch ( ContaoEvents :: BACKEND_ADD_TO_URL , $ urlEvent ) ; $ dispatcher -> dispatch ( ContaoEvents :: IMAGE_GET_HTML , $ importListEvent ) ; return \ sprintf ( ' <a href="%s" title="%s" onclick="Backend.getScrollOffset();">%s</a>' , \ ampersand ( $ urlEvent -> getUrl ( ) ) , StringUtil :: specialchars ( $ translator -> translate ( 'importList.1' , $ defName ) ) , $ importListEvent -> getHtml ( ) ) ; }
Get the list import wizard.

@return string
Get the list import wizard .