You are here

public function IncidentStorageInterface::getIncidentsByType in Radioactivity 8.3

Same name and namespace in other branches
  1. 4.0.x src/IncidentStorageInterface.php \Drupal\radioactivity\IncidentStorageInterface::getIncidentsByType()

Gets all incidents from the storage per entity type.

Parameters

string $entity_type: Entity type for selection. Default to all entity types.

Return value

\Drupal\radioactivity\IncidentInterface[][] Array of incident objects keyed by entity type (1st) and entity ID (2nd).

2 methods override IncidentStorageInterface::getIncidentsByType()
DefaultIncidentStorage::getIncidentsByType in src/DefaultIncidentStorage.php
Gets all incidents from the storage per entity type.
RestIncidentStorage::getIncidentsByType in src/RestIncidentStorage.php
Gets all incidents from the storage per entity type.

File

src/IncidentStorageInterface.php, line 40

Class

IncidentStorageInterface
Defines the incident storage interface.

Namespace

Drupal\radioactivity

Code

public function getIncidentsByType($entity_type = '');