diff --git a/forms/HiddenField.php b/forms/HiddenField.php index 12495f202..831c5573c 100644 --- a/forms/HiddenField.php +++ b/forms/HiddenField.php @@ -1,4 +1,5 @@ Field($properties); } + /** + * @return static + */ public function performReadonlyTransformation() { $clone = clone $this; + $clone->setReadonly(true); + return $clone; } + /** + * @return bool + */ public function IsHidden() { return true; } + /** + * {@inheritdoc} + */ public function getAttributes() { return array_merge( parent::getAttributes(), - array('type' => 'hidden') + array( + 'type' => 'hidden', + ) ); } }