src/Contao/View/Contao2BackendView/Subscriber/WidgetBuilder.php
protected function getTableWizard()
    {
        $environment = $this->getEnvironment();
        $dispatcher  = $environment->getEventDispatcher();
        $defName     = $environment->getDataDefinition()->getName();
        $translator  = $environment->getTranslator();
        $urlEvent    = new AddToUrlEvent('key=table');

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

        $shrinkEvent = new GenerateHtmlEvent(
            'demagnify.svg',
            $translator->translate('shrink.0', $defName),
            \sprintf(
                'title="%s" ' .
                'style="vertical-align:text-bottom; cursor:pointer;" ' .
                'onclick="Backend.tableWizardResize(0.9);"',
                StringUtil::specialchars($translator->translate('shrink.1', $defName))
            )
        );

        $expandEvent = new GenerateHtmlEvent(
            'magnify.svg',
            $translator->translate('expand.0', $defName),
            \sprintf(
                'title="%s" ' .
                'style="vertical-align:text-bottom; cursor:pointer;" ' .
                'onclick="Backend.tableWizardResize(1.1);"',
                StringUtil::specialchars($translator->translate('expand.1', $defName))
            )
        );

        $dispatcher->dispatch(ContaoEvents::BACKEND_ADD_TO_URL, $urlEvent);
        $dispatcher->dispatch(ContaoEvents::IMAGE_GET_HTML, $importTableEvent);
        $dispatcher->dispatch(ContaoEvents::IMAGE_GET_HTML, $shrinkEvent);
        $dispatcher->dispatch(ContaoEvents::IMAGE_GET_HTML, $expandEvent);

        return \sprintf(
            ' <a href="%s" title="%s" onclick="Backend.getScrollOffset();">%s</a> %s%s',
            \ampersand($urlEvent->getUrl()),
            StringUtil::specialchars($translator->translate('importTable.1', $defName)),
            $importTableEvent->getHtml(),
            $shrinkEvent->getHtml(),
            $expandEvent->getHtml()
        );
    }
protected function getTableWizard()
    {
        $environment = $this->getEnvironment();
        $dispatcher  = $environment->getEventDispatcher();
        $defName     = $environment->getDataDefinition()->getName();
        $translator  = $environment->getTranslator();
        $urlEvent    = new AddToUrlEvent('key=table');

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

        $shrinkEvent = new GenerateHtmlEvent(
            'demagnify.svg',
            $translator->translate('shrink.0', $defName),
            \sprintf(
                'title="%s" ' .
                'style="vertical-align:text-bottom; cursor:pointer;" ' .
                'onclick="Backend.tableWizardResize(0.9);"',
                StringUtil::specialchars($translator->translate('shrink.1', $defName))
            )
        );

        $expandEvent = new GenerateHtmlEvent(
            'magnify.svg',
            $translator->translate('expand.0', $defName),
            \sprintf(
                'title="%s" ' .
                'style="vertical-align:text-bottom; cursor:pointer;" ' .
                'onclick="Backend.tableWizardResize(1.1);"',
                StringUtil::specialchars($translator->translate('expand.1', $defName))
            )
        );

        $dispatcher->dispatch(ContaoEvents::BACKEND_ADD_TO_URL, $urlEvent);
        $dispatcher->dispatch(ContaoEvents::IMAGE_GET_HTML, $importTableEvent);
        $dispatcher->dispatch(ContaoEvents::IMAGE_GET_HTML, $shrinkEvent);
        $dispatcher->dispatch(ContaoEvents::IMAGE_GET_HTML, $expandEvent);

        return \sprintf(
            ' <a href="%s" title="%s" onclick="Backend.getScrollOffset();">%s</a> %s%s',
            \ampersand($urlEvent->getUrl()),
            StringUtil::specialchars($translator->translate('importTable.1', $defName)),
            $importTableEvent->getHtml(),
            $shrinkEvent->getHtml(),
            $expandEvent->getHtml()
        );
    }
protected function getTableWizard ( ) { $ environment = $ this -> getEnvironment ( ) ; $ dispatcher = $ environment -> getEventDispatcher ( ) ; $ defName = $ environment -> getDataDefinition ( ) -> getName ( ) ; $ translator = $ environment -> getTranslator ( ) ; $ urlEvent = new AddToUrlEvent ( 'key=table' ) ; $ importTableEvent = new GenerateHtmlEvent ( 'tablewizard.svg' , $ translator -> translate ( 'importTable.0' , $ defName ) , 'style="vertical-align:text-bottom;"' ) ; $ shrinkEvent = new GenerateHtmlEvent ( 'demagnify.svg' , $ translator -> translate ( 'shrink.0' , $ defName ) , \ sprintf ( 'title="%s" ' . 'style="vertical-align:text-bottom; cursor:pointer;" ' . 'onclick="Backend.tableWizardResize(0.9);"' , StringUtil :: specialchars ( $ translator -> translate ( 'shrink.1' , $ defName ) ) ) ) ; $ expandEvent = new GenerateHtmlEvent ( 'magnify.svg' , $ translator -> translate ( 'expand.0' , $ defName ) , \ sprintf ( 'title="%s" ' . 'style="vertical-align:text-bottom; cursor:pointer;" ' . 'onclick="Backend.tableWizardResize(1.1);"' , StringUtil :: specialchars ( $ translator -> translate ( 'expand.1' , $ defName ) ) ) ) ; $ dispatcher -> dispatch ( ContaoEvents :: BACKEND_ADD_TO_URL , $ urlEvent ) ; $ dispatcher -> dispatch ( ContaoEvents :: IMAGE_GET_HTML , $ importTableEvent ) ; $ dispatcher -> dispatch ( ContaoEvents :: IMAGE_GET_HTML , $ shrinkEvent ) ; $ dispatcher -> dispatch ( ContaoEvents :: IMAGE_GET_HTML , $ expandEvent ) ; return \ sprintf ( ' <a href="%s" title="%s" onclick="Backend.getScrollOffset();">%s</a> %s%s' , \ ampersand ( $ urlEvent -> getUrl ( ) ) , StringUtil :: specialchars ( $ translator -> translate ( 'importTable.1' , $ defName ) ) , $ importTableEvent -> getHtml ( ) , $ shrinkEvent -> getHtml ( ) , $ expandEvent -> getHtml ( ) ) ; }
Get the table import wizard.

@return string
Get the table import wizard .