public function EdgeEntityBase::uniqueIds in Apigee Edge 8
List of unique ids how an entity can be referenced in Apigee Edge.
It must return the values of the properties returned by idProperties().
Return value
string[] Array of unique ids on the entity.
Overrides EdgeEntityInterface::uniqueIds
See also
\Drupal\apigee_edge\Entity\EdgeEntityInterface::uniqueIdProperties()
File
- src/
Entity/ EdgeEntityBase.php, line 109
Class
- EdgeEntityBase
- Base class for Apigee Edge entities in Drupal.
Namespace
Drupal\apigee_edge\EntityCode
public function uniqueIds() : array {
$ids = [];
$ro = new \ReflectionObject($this);
foreach (static::uniqueIdProperties() as $property) {
$getter = 'get' . ucfirst($property);
$ids[] = $ro
->getMethod($getter)
->invoke($this);
}
return $ids;
}