src/WidthFieldtype.php
public function init()
    {
        parent::init();

        // Register our field
        Event::on(
            Fields::class,
            Fields::EVENT_REGISTER_FIELD_TYPES,
            function (RegisterComponentTypesEvent $event) {
                $event->types[] = WidthField::class;
            }
        );
    }
public function init()
    {
        parent::init();

        // Register our field
        Event::on(
            Fields::class,
            Fields::EVENT_REGISTER_FIELD_TYPES,
            function (RegisterComponentTypesEvent $event) {
                $event->types[] = WidthField::class;
            }
        );
    }
/* @inheritdoc