GrafiteInc/Forms

View on GitHub
src/Fields/SwitchToggle.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Grafite\Forms\Fields;

use Grafite\Forms\Fields\Field;

class SwitchToggle extends Field
{
    protected static function getType()
    {
        return 'switch';
    }

    protected static function getOptions()
    {
        return [
            'class' => '',
        ];
    }

    protected static function getAttributes()
    {
        return [
            'class' => 'form-check-input'
        ];
    }

    protected static function getFactory()
    {
        return 'boolean';
    }
}