public function ServiceEndpoint::delete in Services 8.4
Same name and namespace in other branches
- 9.0.x 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\EntityCode
public function delete() {
parent::delete();
$this
->getResourceStorage()
->delete($this
->loadResourceProviders());
}