public function FormHelper::entityIsNew in Simple XML sitemap 4.x
Same name and namespace in other branches
- 8.3 src/Form/FormHelper.php \Drupal\simple_sitemap\Form\FormHelper::entityIsNew()
Return value
bool
1 call to FormHelper::entityIsNew()
- FormHelper::getEntityDataFromFormEntity in src/
Form/ FormHelper.php - Checks if this particular form is a bundle form, or a bundle instance form and gathers sitemap settings from the database.
File
- src/
Form/ FormHelper.php, line 244
Class
- FormHelper
- Class FormHelper
Namespace
Drupal\simple_sitemap\FormCode
public function entityIsNew() : bool {
return empty($entity = $this
->getFormEntity()) || $entity
->isNew();
}