summaryrefslogtreecommitdiffstats
path: root/core/modules/node/src/NodeForm.php
diff options
context:
space:
mode:
authorAlex Pott2015-04-16 08:25:19 (GMT)
committerAlex Pott2015-04-16 08:25:19 (GMT)
commitb4b94c02d2f87f01cc8f78227405957ed77b7d55 (patch)
tree7886fd3b8919efa97e25f995cc652a4575165b8c /core/modules/node/src/NodeForm.php
parentfb5ea78b253d7e049d9df29b8484413356d0b4ae (diff)
Revert "Issue #2459753 follow-up by tim.plunkett, alexpott: EntityForm::validate() should be able to modify the form structure"
This reverts commit fb5ea78b253d7e049d9df29b8484413356d0b4ae.
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())) {