43 if ($value === null) {
60 if ($value === null) {
62 $clone->value = $value;
63 $clone->null_value_was_explicitly_set =
true;
66 $clone = parent::withValue($value);
67 $clone->null_value_was_explicitly_set =
false;
76 if ($this->null_value_was_explicitly_set) {
79 return parent::getValue();
88 if ($this->getName() === null) {
89 throw new \LogicException(
"Can only collect if input has a name.");
93 $value = $post_input->
getOr($this->getName(), null);
94 if ($value === null) {
97 $temp = $clone->is_required;
98 $clone->is_required =
true;
99 $clone->content = $clone->applyOperationsTo(null);
100 $clone->is_required = $temp;
104 return parent::withInput($post_input);
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.