You are here

public function OpenIDConnectClientEntity::delete in OpenID Connect / OAuth client 2.x

Deletes an entity permanently.

Throws

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

Overrides EntityBase::delete

File

src/Entity/OpenIDConnectClientEntity.php, line 143

Class

OpenIDConnectClientEntity
Defines the OpenID Connect client entity.

Namespace

Drupal\openid_connect\Entity

Code

public function delete() {

  // Delete all entries in the authmap for this client.
  $this->authmap
    ->deleteProvider('open_connect.' . $this
    ->id());
  parent::delete();
}