summaryrefslogtreecommitdiffstats
path: root/core/modules/node/src/NodeForm.php
diff options
context:
space:
mode:
authorwebchick2015-04-15 20:05:59 (GMT)
committerwebchick2015-04-15 20:05:59 (GMT)
commitfb5ea78b253d7e049d9df29b8484413356d0b4ae (patch)
treefe01a7dee7ee6ddae82092cd87d3979c6b9bdd16 /core/modules/node/src/NodeForm.php
parent0670a5fe01e5bfdc8d191add00effdba5263184e (diff)
Issue #2459753 follow-up by tim.plunkett, alexpott: EntityForm::validate() should be able to modify the form structure
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 44fccbf..5d34b1a 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())) {