src/Forms/FormField.php
public function performDisabledTransformation()
    {
        $disabledClassName = static::class . '_Disabled';

        if (ClassInfo::exists($disabledClassName)) {
            $clone = $this->castedCopy($disabledClassName);
        } else {
            $clone = clone $this;
        }

        $clone->setDisabled(true);

        return $clone;
    }
public function performDisabledTransformation()
    {
        $disabledClassName = static::class . '_Disabled';

        if (ClassInfo::exists($disabledClassName)) {
            $clone = $this->castedCopy($disabledClassName);
        } else {
            $clone = clone $this;
        }

        $clone->setDisabled(true);

        return $clone;
    }
public function performDisabledTransformation ( ) { $ disabledClassName = static :: class . '_Disabled' ; if ( ClassInfo :: exists ( $ disabledClassName ) ) { $ clone = $ this -> castedCopy ( $ disabledClassName ) ; } else { $ clone = clone $ this ; } $ clone -> setDisabled ( true ) ; return $ clone ; }
Return a disabled version of this field.

Tries to find a class of the class name of this field suffixed with "_Disabled", failing
that, finds a method {@link setDisabled()}.

@return FormField
Return a disabled version of this field .