PHP code example of tastaturberuf / contao-interfaces
1. Go to this page and download the library: Download tastaturberuf/contao-interfaces 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/ */
tastaturberuf / contao-interfaces example snippets
use Tastaturberuf\ContaoInterfaces\Hooks\LoadDataContainerHook;
class MyEventListener implements LoadDataContainerHook
{
public function onLoadDataContainer(string $table) : void
{
// Do something
}
}
use Contao\CoreBundle\ServiceAnnotation\Hook;
use Tastaturberuf\ContaoInterfaces\Hooks\LoadDataContainerHook;
use Terminal42\ServiceAnnotationBundle\ServiceAnnotationInterface;
class MyEventListener implements LoadDataContainerHook, ServiceAnnotationInterface
{
/**
* @Hook("loadDataContainer", priority=1337)
*/
public function onLoadDataContainer(string $table) : void
{
// Do something
}
}