public function resolveFormWidget($name)
    {
        if ($this->formWidgets === null) {
            $this->listFormWidgets();
        }

        $hints = $this->formWidgetHints;

        if (isset($hints[$name])) {
            return $hints[$name];
        }

        $_name = Str::normalizeClassName($name);
        if (isset($this->formWidgets[$_name])) {
            return $_name;
        }

        return $name;
    }
public function resolveFormWidget($name)
    {
        if ($this->formWidgets === null) {
            $this->listFormWidgets();
        }

        $hints = $this->formWidgetHints;

        if (isset($hints[$name])) {
            return $hints[$name];
        }

        $_name = Str::normalizeClassName($name);
        if (isset($this->formWidgets[$_name])) {
            return $_name;
        }

        return $name;
    }
public function resolveFormWidget ( $ name ) { if ( $ this -> formWidgets === null ) { $ this -> listFormWidgets ( ) ; } $ hints = $ this -> formWidgetHints ; if ( isset ( $ hints [ $ name ] ) ) { return $ hints [ $ name ] ; } $ _name = Str :: normalizeClassName ( $ name ) ; if ( isset ( $ this -> formWidgets [ $ _name ] ) ) { return $ _name ; } return $ name ; }
Returns a class name from a form widget code
Normalizes a class name or converts an code to its class name.
@param string $name Class name or form widget code.
@return string The class name resolved, or the original name.
Returns a class name from a form widget code Normalizes a class name or converts an code to its class name .