Commit bacdaa8b authored by gbyte.co's avatar gbyte.co

Issue #2901612 by jribeiro: Call to undefined method .. getOperation()

parent cb5644af
......@@ -321,6 +321,7 @@ class FormHelper {
protected function getFormEntity() {
$form_object = $this->formState->getFormObject();
if (NULL !== $form_object
&& method_exists($form_object, 'getOperation')
&& method_exists($form_object, 'getEntity')
&& in_array($form_object->getOperation(), self::$allowedFormOperations)) {
return $form_object->getEntity();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment