for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @copyright Copyright (c) Flipbox Digital Limited
* @license https://flipboxfactory.com/software/interval/license
* @link https://www.flipboxfactory.com/software/interval/
*/
namespace flipbox\interval;
use craft\base\Plugin;
use craft\events\RegisterComponentTypesEvent;
use craft\services\Fields;
use flipbox\interval\fields\Interval as IntervalField;
use yii\base\Event;
* @author Flipbox Factory <[email protected]>
* @since 1.0.0
class Interval extends Plugin
{
* @inheritdoc
public function init()
parent::init();
// Register our field types
Event::on(
Fields::class,
Fields::EVENT_REGISTER_FIELD_TYPES,
function (RegisterComponentTypesEvent $event) {
$event->types[] = IntervalField::class;
}
);