src/Forms/FormField.php
public function performReadonlyTransformation()
    {
        $readonlyClassName = static::class . '_Readonly';

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

        $clone->setReadonly(true);

        return $clone;
    }
public function performReadonlyTransformation()
    {
        $readonlyClassName = static::class . '_Readonly';

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

        $clone->setReadonly(true);

        return $clone;
    }
public function performReadonlyTransformation ( ) { $ readonlyClassName = static :: class . '_Readonly' ; if ( ClassInfo :: exists ( $ readonlyClassName ) ) { $ clone = $ this -> castedCopy ( $ readonlyClassName ) ; } else { $ clone = $ this -> castedCopy ( ReadonlyField :: class ) ; } $ clone -> setReadonly ( true ) ; return $ clone ; }
Returns a read-only version of this field.

@return FormField
Returns a read - only version of this field .