public static function OembedProvider::postDelete in oEmbed Providers 2.x
Acts on deleted entities before the delete hook is invoked.
Used after the entities are deleted but before invoking the delete hook.
Parameters
\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object.
\Drupal\Core\Entity\EntityInterface[] $entities: An array of entities.
Overrides EntityBase::postDelete
File
- src/
Entity/ OembedProvider.php, line 92
Class
- OembedProvider
- Defines the oEmbed provider entity.
Namespace
Drupal\oembed_providers\EntityCode
public static function postDelete(EntityStorageInterface $storage, $update = TRUE) {
parent::postDelete($storage, $update);
// Dependency injection is impossible because
// \Drupal\Core\Entity\EntityBase defines an incompatible create() method.
\Drupal::service('keyvalue')
->get('media')
->delete('oembed_providers');
}