Commit 76f66bc7 authored by gbyte.co's avatar gbyte.co

Issue #2903704 by gbyte.co: Sitemap entity inclusion settings shown on Sitemap Entities form

parent 0496e9cd
......@@ -94,6 +94,7 @@ class FormHelper {
*/
public function processForm(FormStateInterface $form_state) {
$this->formState = $form_state;
$this->cleanUpFormInfo();
$this->getEntityDataFromFormEntity();
return $this->supports();
}
......@@ -329,6 +330,19 @@ class FormHelper {
return FALSE;
}
/**
* Removes gathered form information from service object.
*
* Needed because this service may contain form info from the previous
* operation when revived from the container.
*/
protected function cleanUpFormInfo() {
$this->entityCategory = NULL;
$this->entityTypeId = NULL;
$this->bundleName = NULL;
$this->instanceId = NULL;
}
/**
* Gets new entity Id after entity creation.
* To be used in an entity form submit.
......
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