You are here

public function FormHelper::getFormEntityId in Simple XML sitemap 8.2

Gets new entity Id after entity creation. To be used in an entity form submit.

Return value

int Entity ID.

File

src/Form/FormHelper.php, line 402

Class

FormHelper
Class FormHelper @package Drupal\simple_sitemap\Form

Namespace

Drupal\simple_sitemap\Form

Code

public function getFormEntityId() {
  return $this->formState
    ->getFormObject()
    ->getEntity()
    ->id();
}