PHP code example of heimrichhannot / contao-linkchecker-bundle
1. Go to this page and download the library: Download heimrichhannot/contao-linkchecker-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
heimrichhannot / contao-linkchecker-bundle example snippets
//tl_sample.php
'linkChecker' => array(
'label' => &$GLOBALS['TL_LANG']['tl_sample']['linkChecker'],
'inputType' => 'linkChecker',
'load_callback' => array(
array('MyClass', 'getLinkCheckerHtml'),
),
),
// MyClass
public function getLinkCheckerHtml($varValue, \DataContainer $dc)
{
return '<a href="http://google.de">Google</a>'
}