You are here

public function FormHelper::setEntityCategory in Simple XML sitemap 4.x

Same name and namespace in other branches
  1. 8.3 src/Form/FormHelper.php \Drupal\simple_sitemap\Form\FormHelper::setEntityCategory()
  2. 8.2 src/Form/FormHelper.php \Drupal\simple_sitemap\Form\FormHelper::setEntityCategory()

Parameters

string|null $entity_category:

Return value

$this

1 call to FormHelper::setEntityCategory()
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 152

Class

FormHelper
Class FormHelper

Namespace

Drupal\simple_sitemap\Form

Code

public function setEntityCategory(?string $entity_category) : FormHelper {
  $this->entityCategory = $entity_category;
  return $this;
}