You are here

public function Cluster::id in Elasticsearch Connector 8.2

Same name and namespace in other branches
  1. 8.7 src/Entity/Cluster.php \Drupal\elasticsearch_connector\Entity\Cluster::id()
  2. 8 src/Entity/Cluster.php \Drupal\elasticsearch_connector\Entity\Cluster::id()
  3. 8.5 src/Entity/Cluster.php \Drupal\elasticsearch_connector\Entity\Cluster::id()
  4. 8.6 src/Entity/Cluster.php \Drupal\elasticsearch_connector\Entity\Cluster::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/Cluster.php, line 102
Contains \Drupal\elasticsearch_connector\Entity\Cluster.

Class

Cluster
Defines the Elasticsearch Connector Cluster configuration entity.

Namespace

Drupal\elasticsearch_connector\Entity

Code

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