You are here

public static function Developer::uniqueIdProperties in Apigee Edge 8

Returns all unique ids how an entity can be referenced in Apigee Edge.

All these ids can be used in Drupal to load entity as well.

Ex.: Developer can be referenced by its UUID or its email address.

Return value

string[] Array of entity properties that stores unique entity ids. Returned properties must have a public getter, ex.: 'get' . ucfirst($property).

Overrides EdgeEntityBase::uniqueIdProperties

File

src/Entity/Developer.php, line 162

Class

Developer
Defines the Developer entity class.

Namespace

Drupal\apigee_edge\Entity

Code

public static function uniqueIdProperties() : array {

  // Parent returns the original email.
  // @see static::idProperty()
  return array_merge(parent::uniqueIdProperties(), [
    // UUID.
    EdgeDeveloper::idProperty(),
  ]);
}