Encore\Admin\Widgets\Form::__call PHP 메소드

__call() 공개 메소드

Generate a Field object and add to form builder if Field exists.
public __call ( string $method, array $arguments ) : Field | null
$method string
$arguments array
리턴 Encore\Admin\Form\Field | null
    public function __call($method, $arguments)
    {
        if ($className = static::findFieldClass($method)) {
            $name = array_get($arguments, 0, '');
            $element = new $className($name, array_slice($arguments, 1));
            $this->pushField($element);
            return $element;
        }
    }