PHP code example of flipboxfactory / craft-link
1. Go to this page and download the library: Download flipboxfactory/craft-link 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/ */
flipboxfactory / craft-link example snippets
\yii\base\Event::on(
\flipbox\craft\link\Link::class,
\flipbox\craft\link\Link::EVENT_REGISTER_TYPES,
function(RegisterLinkTypes $event) {
$event->types[] = YourLinkType::class; // Replace this with your link type class
}
);