src/Forms/TreeMultiselectField.php 1 location
|
@@ 194-202 (lines=9) @@
|
191 |
|
/** |
192 |
|
* Changes this field to the readonly field. |
193 |
|
*/ |
194 |
|
public function performReadonlyTransformation() |
195 |
|
{ |
196 |
|
$copy = $this->castedCopy('SilverStripe\\Forms\\TreeMultiselectField_Readonly'); |
197 |
|
$copy->setKeyField($this->keyField); |
198 |
|
$copy->setLabelField($this->labelField); |
199 |
|
$copy->setSourceObject($this->sourceObject); |
200 |
|
|
201 |
|
return $copy; |
202 |
|
} |
203 |
|
} |
204 |
|
|
src/Forms/TreeDropdownField.php 1 location
|
@@ 634-642 (lines=9) @@
|
631 |
|
/** |
632 |
|
* Changes this field to the readonly field. |
633 |
|
*/ |
634 |
|
public function performReadonlyTransformation() |
635 |
|
{ |
636 |
|
/** @var TreeDropdownField_Readonly $copy */ |
637 |
|
$copy = $this->castedCopy(TreeDropdownField_Readonly::class); |
638 |
|
$copy->setKeyField($this->keyField); |
639 |
|
$copy->setLabelField($this->labelField); |
640 |
|
$copy->setSourceObject($this->sourceObject); |
641 |
|
return $copy; |
642 |
|
} |
643 |
|
|
644 |
|
/** |
645 |
|
* @param string|FormField $classOrCopy |