summaryrefslogtreecommitdiffstats
path: root/core/modules/node/src/NodeForm.php
diff options
context:
space:
mode:
authorAlex Pott2015-04-15 18:13:21 (GMT)
committerAlex Pott2015-04-15 18:13:21 (GMT)
commit0670a5fe01e5bfdc8d191add00effdba5263184e (patch)
tree7886fd3b8919efa97e25f995cc652a4575165b8c /core/modules/node/src/NodeForm.php
parent651063e7f5c5e834fd3985c9b61acab8aa30513d (diff)
Revert "Issue #2459753 by tim.plunkett: EntityForm::validate() should be able to modify the form structure"
This reverts commit d4d83576d2efb78fbef7aef22ef0b1d33dce25fd.
Diffstat (limited to 'core/modules/node/src/NodeForm.php')
-rw-r--r--core/modules/node/src/NodeForm.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/node/src/NodeForm.php b/core/modules/node/src/NodeForm.php
index 5d34b1a..44fccbf 100644
--- a/core/modules/node/src/NodeForm.php
+++ b/core/modules/node/src/NodeForm.php
@@ -286,7 +286,7 @@ class NodeForm extends ContentEntityForm {
/**
* {@inheritdoc}
*/
- public function validate(array &$form, FormStateInterface $form_state) {
+ public function validate(array $form, FormStateInterface $form_state) {
$node = parent::validate($form, $form_state);
if ($node->id() && (node_last_changed($node->id(), $this->getFormLangcode($form_state)) > $node->getChangedTime())) {