protected function addTargetPage()
    {
        $targetPageId = $this->getFieldFromFlexform('search.targetPage');
        if (!empty($targetPageId)) {
            $page = BackendUtility::getRecord('pages', $targetPageId, 'title');
            $this->settings['Target Page'] = '[' . (int)$targetPageId . '] ' . $page['title'];
        }
    }
protected function addTargetPage()
    {
        $targetPageId = $this->getFieldFromFlexform('search.targetPage');
        if (!empty($targetPageId)) {
            $page = BackendUtility::getRecord('pages', $targetPageId, 'title');
            $this->settings['Target Page'] = '[' . (int)$targetPageId . '] ' . $page['title'];
        }
    }
protected function addTargetPage ( ) { $ targetPageId = $ this -> getFieldFromFlexform ( 'search.targetPage' ) ; if ( ! empty ( $ targetPageId ) ) { $ page = BackendUtility :: getRecord ( 'pages' , $ targetPageId , 'title' ) ; $ this -> settings [ 'Target Page' ] = '[' . ( int ) $ targetPageId . '] ' . $ page [ 'title' ] ; } }
Adds the target page to the settings.
Adds the target page to the settings .