protected function EdgeEntityStorageBase::has in Apigee Edge 8
Determines if this entity already exists in storage.
Parameters
int|string $id: The original entity ID.
\Drupal\Core\Entity\EntityInterface $entity: The entity being saved.
Return value
bool
Overrides EntityStorageBase::has
File
- src/
Entity/ Storage/ EdgeEntityStorageBase.php, line 141
Class
- EdgeEntityStorageBase
- Base entity storage class for Apigee Edge entities.
Namespace
Drupal\apigee_edge\Entity\StorageCode
protected function has($id, EntityInterface $entity) {
return !$entity
->isNew();
}