You are here

public function Index::id in Elasticsearch Connector 8.2

Same name and namespace in other branches
  1. 8.7 src/Entity/Index.php \Drupal\elasticsearch_connector\Entity\Index::id()
  2. 8 src/Entity/Index.php \Drupal\elasticsearch_connector\Entity\Index::id()
  3. 8.5 src/Entity/Index.php \Drupal\elasticsearch_connector\Entity\Index::id()
  4. 8.6 src/Entity/Index.php \Drupal\elasticsearch_connector\Entity\Index::id()

Gets the identifier.

Return value

string|int|null The entity identifier, or NULL if the object does not yet have an identifier.

Overrides EntityBase::id

File

src/Entity/Index.php, line 86
Contains \Drupal\elasticsearch_connector\Entity\Index.

Class

Index
Defines the Elasticsearch Connector Index configuration entity.

Namespace

Drupal\elasticsearch_connector\Entity

Code

public function id() {
  return isset($this->index_id) ? $this->index_id : NULL;
}