You are here

public function ServiceEndpoint::delete in Services 9.0.x

Same name and namespace in other branches
  1. 8.4 src/Entity/ServiceEndpoint.php \Drupal\services\Entity\ServiceEndpoint::delete()

Deletes an entity permanently.

Throws

\Drupal\Core\Entity\EntityStorageException In case of failures an exception is thrown.

Overrides EntityBase::delete

File

src/Entity/ServiceEndpoint.php, line 99

Class

ServiceEndpoint
Defines the service endpoint entity.

Namespace

Drupal\services\Entity

Code

public function delete() {
  parent::delete();
  $this
    ->getResourceStorage()
    ->delete($this
    ->loadResourceProviders());
}