public function pagePicker(ManipulateWidgetEvent $event)
    {
        if (!$this->scopeDeterminator->currentScopeIsBackend()
            || !('tl_metamodel_rendersettings' === $event->getEnvironment()->getDataDefinition()->getName())
            || !((0 === strpos($event->getProperty()->getName(), 'jumpTo'))
                 && ('[value]' === substr($event->getProperty()->getName(), -\strlen('[value]'))))
        ) {
            return;
        }

        $environment = $event->getEnvironment();

        $pickerUrl = $this->pickerBuilder->getUrl('cca_link');

        $urlEvent = new GenerateHtmlEvent(
            'pickpage.svg',
            $environment->getTranslator()->translate('MSC.pagepicker'),
            'style="vertical-middle:top;cursor:pointer"'
        );

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

        $template = new ContaoBackendViewTemplate('dc_general_wizard_link_url_picker');
        $template
            ->set('name', $event->getWidget()->name)
            ->set('popupUrl', $pickerUrl)
            ->set('html', ' ' . $urlEvent->getHtml())
            ->set('label', $event->getProperty()->getLabel()[1])
            ->set('id', $event->getWidget()->id);

        $event->getWidget()->wizard = $template->parse();
    }
public function pagePicker(ManipulateWidgetEvent $event)
    {
        if (!$this->scopeDeterminator->currentScopeIsBackend()
            || !('tl_metamodel_rendersettings' === $event->getEnvironment()->getDataDefinition()->getName())
            || !((0 === strpos($event->getProperty()->getName(), 'jumpTo'))
                 && ('[value]' === substr($event->getProperty()->getName(), -\strlen('[value]'))))
        ) {
            return;
        }

        $environment = $event->getEnvironment();

        $pickerUrl = $this->pickerBuilder->getUrl('cca_link');

        $urlEvent = new GenerateHtmlEvent(
            'pickpage.svg',
            $environment->getTranslator()->translate('MSC.pagepicker'),
            'style="vertical-middle:top;cursor:pointer"'
        );

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

        $template = new ContaoBackendViewTemplate('dc_general_wizard_link_url_picker');
        $template
            ->set('name', $event->getWidget()->name)
            ->set('popupUrl', $pickerUrl)
            ->set('html', ' ' . $urlEvent->getHtml())
            ->set('label', $event->getProperty()->getLabel()[1])
            ->set('id', $event->getWidget()->id);

        $event->getWidget()->wizard = $template->parse();
    }
public function pagePicker ( ManipulateWidgetEvent $ event ) { if ( ! $ this -> scopeDeterminator -> currentScopeIsBackend ( ) || ! ( 'tl_metamodel_rendersettings' === $ event -> getEnvironment ( ) -> getDataDefinition ( ) -> getName ( ) ) || ! ( ( 0 === strpos ( $ event -> getProperty ( ) -> getName ( ) , 'jumpTo' ) ) && ( '[value]' === substr ( $ event -> getProperty ( ) -> getName ( ) , - \ strlen ( '[value]' ) ) ) ) ) { return ; } $ environment = $ event -> getEnvironment ( ) ; $ pickerUrl = $ this -> pickerBuilder -> getUrl ( 'cca_link' ) ; $ urlEvent = new GenerateHtmlEvent ( 'pickpage.svg' , $ environment -> getTranslator ( ) -> translate ( 'MSC.pagepicker' ) , 'style="vertical-middle:top;cursor:pointer"' ) ; $ environment -> getEventDispatcher ( ) -> dispatch ( ContaoEvents :: IMAGE_GET_HTML , $ urlEvent ) ; $ template = new ContaoBackendViewTemplate ( 'dc_general_wizard_link_url_picker' ) ; $ template -> set ( 'name' , $ event -> getWidget ( ) -> name ) -> set ( 'popupUrl' , $ pickerUrl ) -> set ( 'html' , ' ' . $ urlEvent -> getHtml ( ) ) -> set ( 'label' , $ event -> getProperty ( ) -> getLabel ( ) [ 1 ] ) -> set ( 'id' , $ event -> getWidget ( ) -> id ) ; $ event -> getWidget ( ) -> wizard = $ template -> parse ( ) ; }
Return the link picker wizard - this is called from Multi column wizard in render settings jumpTo page handling.

@param ManipulateWidgetEvent $event The event.

@return void
Return the link picker wizard - this is called from Multi column wizard in render settings jumpTo page handling .