GrafiteInc/Forms

View on GitHub
src/Fields/DatetimeLocal.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Grafite\Forms\Fields;

use Grafite\Forms\Fields\Field;

class DatetimeLocal extends Field
{
    protected static function getType()
    {
        return 'datetime-local';
    }

    protected static function getOptions()
    {
        return [
            'format' => 'Y-m-d\TH:i',
            'before' => 'Date/Time',
        ];
    }

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