Skip to content

Commit

Permalink
Drop the obsolete SerpPreview url_callback for tl_page
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Jan 13, 2024
1 parent 419360d commit 5487c57
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions core-bundle/contao/dca/tl_page.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ static function ($value) {
(
'label' => &$GLOBALS['TL_LANG']['MSC']['serpPreview'],
'inputType' => 'serpPreview',
'eval' => array('url_callback'=>array('tl_page', 'getSerpUrl'), 'title_tag_callback'=>array('tl_page', 'getTitleTag'), 'titleFields'=>array('pageTitle', 'title'), 'tl_class'=>'clr'),
'eval' => array('title_tag_callback'=>array('tl_page', 'getTitleTag'), 'titleFields'=>array('pageTitle', 'title'), 'tl_class'=>'clr'),
'sql' => null
),
'redirect' => array
Expand Down Expand Up @@ -728,18 +728,6 @@ public function setRootType(DataContainer $dc)
}
}

/**
* Return the SERP URL
*
* @param PageModel $page
*
* @return string
*/
public function getSerpUrl(PageModel $page)
{
return $page->getAbsoluteUrl();
}

/**
* Return the title tag from the associated page layout
*
Expand Down

0 comments on commit 5487c57

Please sign in to comment.