public function Cluster::id in Elasticsearch Connector 8.6
Same name and namespace in other branches
- 8.7 src/Entity/Cluster.php \Drupal\elasticsearch_connector\Entity\Cluster::id()
- 8 src/Entity/Cluster.php \Drupal\elasticsearch_connector\Entity\Cluster::id()
- 8.2 src/Entity/Cluster.php \Drupal\elasticsearch_connector\Entity\Cluster::id()
- 8.5 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 97
Class
- Cluster
- Defines the Elasticsearch Connector Cluster configuration entity.
Namespace
Drupal\elasticsearch_connector\EntityCode
public function id() {
return isset($this->cluster_id) ? $this->cluster_id : NULL;
}