src/Field/Factory.php
public function date($name, array $features = [], array $attributes = [])
    {
        $properties = [
            'features' => $features,
            'atts' => array_merge(['class' => 'newtag'], $attributes, ['data-field' => 'date']),
            'name' => $name,
        ];

        return $this->make('Themosis\\Field\\Fields\\DateField', $properties);
    }
public function date($name, array $features = [], array $attributes = [])
    {
        $properties = [
            'features' => $features,
            'atts' => array_merge(['class' => 'newtag'], $attributes, ['data-field' => 'date']),
            'name' => $name,
        ];

        return $this->make('Themosis\\Field\\Fields\\DateField', $properties);
    }
public function date ( $ name , array $ features = [ ] , array $ attributes = [ ] ) { $ properties = [ 'features' => $ features , 'atts' => array_merge ( [ 'class' => 'newtag' ] , $ attributes , [ 'data-field' => 'date' ] ) , 'name' => $ name , ] ; return $ this -> make ( 'Themosis\\Field\\Fields\\DateField' , $ properties ) ; }
Return a DateField instance.

@param string $name       The name attribute of the date input.
@param array  $features   Custom field features - title, info.
@param array  $attributes Input html attributes.

@return \Themosis\Field\Fields\DateField
Return a DateField instance .