public function ServiceResource::id in Services 8.4
Same name and namespace in other branches
- 9.0.x 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\EntityCode
public function id() {
return $this->service_endpoint_id . '.' . strtr($this->service_plugin_id, ':', '.');
}