You are here

public function EntityTraversal::getResults in General Data Protection Regulation 8

Same name and namespace in other branches
  1. 8.2 modules/gdpr_fields/src/EntityTraversal.php \Drupal\gdpr_fields\EntityTraversal::getResults()
  2. 3.0.x modules/gdpr_fields/src/EntityTraversal.php \Drupal\gdpr_fields\EntityTraversal::getResults()

Get the traversal results.

Return value

array|null Results collected by the traversal. By default this will be a nested array. The first dimension is keyed by entity type and contains an array keyed by entity ID. The values will be the entity instances.

Overrides EntityTraversalInterface::getResults

File

modules/gdpr_fields/src/EntityTraversal.php, line 330

Class

EntityTraversal
Base class for traversing entities.

Namespace

Drupal\gdpr_fields

Code

public function getResults() {
  try {
    if ($this
      ->traverse()) {
      return $this->results;
    }
  } catch (\Exception $exception) {
    return NULL;
  }
}