src/Contao/View/Contao2BackendView/Subscriber/WidgetBuilder.php
protected function getHelpWizard($propInfo)
    {
        $helpWizard  = '';
        $environment = $this->getEnvironment();
        $translator  = $environment->getTranslator();
        // Add the help wizard.
        if ($propInfo->getExtra() && \array_key_exists('helpwizard', $propInfo->getExtra())) {
            $event = new GenerateHtmlEvent(
                'about.svg',
                $translator->translate('helpWizard', 'MSC'),
                'style="vertical-align:text-bottom;"'
            );

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

            $helpWizard .= \sprintf(
                ' <a href="contao/help?table=%s&amp;field=%s" ' .
                'title="%s" ' .
                'onclick="Backend.openWindow(this, 600, 500); return false;">%s</a>',
                $environment->getDataDefinition()->getName(),
                $propInfo->getName(),
                StringUtil::specialchars($translator->translate('helpWizard', 'MSC')),
                $event->getHtml()
            );
        }

        return $helpWizard;
    }
protected function getHelpWizard($propInfo)
    {
        $helpWizard  = '';
        $environment = $this->getEnvironment();
        $translator  = $environment->getTranslator();
        // Add the help wizard.
        if ($propInfo->getExtra() && \array_key_exists('helpwizard', $propInfo->getExtra())) {
            $event = new GenerateHtmlEvent(
                'about.svg',
                $translator->translate('helpWizard', 'MSC'),
                'style="vertical-align:text-bottom;"'
            );

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

            $helpWizard .= \sprintf(
                ' <a href="contao/help?table=%s&amp;field=%s" ' .
                'title="%s" ' .
                'onclick="Backend.openWindow(this, 600, 500); return false;">%s</a>',
                $environment->getDataDefinition()->getName(),
                $propInfo->getName(),
                StringUtil::specialchars($translator->translate('helpWizard', 'MSC')),
                $event->getHtml()
            );
        }

        return $helpWizard;
    }
protected function getHelpWizard ( $ propInfo ) { $ helpWizard = '' ; $ environment = $ this -> getEnvironment ( ) ; $ translator = $ environment -> getTranslator ( ) ; // Add the help wizard. if ( $ propInfo -> getExtra ( ) && \ array_key_exists ( 'helpwizard' , $ propInfo -> getExtra ( ) ) ) { $ event = new GenerateHtmlEvent ( 'about.svg' , $ translator -> translate ( 'helpWizard' , 'MSC' ) , 'style="vertical-align:text-bottom;"' ) ; $ environment -> getEventDispatcher ( ) -> dispatch ( ContaoEvents :: IMAGE_GET_HTML , $ event ) ; $ helpWizard .= \ sprintf ( ' <a href="contao/help?table=%s&amp;field=%s" ' . 'title="%s" ' . 'onclick="Backend.openWindow(this, 600, 500); return false;">%s</a>' , $ environment -> getDataDefinition ( ) -> getName ( ) , $ propInfo -> getName ( ) , StringUtil :: specialchars ( $ translator -> translate ( 'helpWizard' , 'MSC' ) ) , $ event -> getHtml ( ) ) ; } return $ helpWizard ; }
Get the help wizard.

@param PropertyInterface $propInfo The property for which the wizard shall be generated.

@return string
Get the help wizard .