You are here

public function ServiceResource::id in Services 9.0.x

Same name and namespace in other branches
  1. 8.4 src/Entity/ServiceResource.php \Drupal\services\Entity\ServiceResource::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/ServiceResource.php, line 88

Class

ServiceResource
Defines service resource entity.

Namespace

Drupal\services\Entity

Code

public function id() {
  return $this->service_endpoint_id . '.' . strtr($this->service_plugin_id, ':', '.');
}