public function EntityTraversal::getResults in General Data Protection Regulation 3.0.x
Same name and namespace in other branches
- 8.2 modules/gdpr_fields/src/EntityTraversal.php \Drupal\gdpr_fields\EntityTraversal::getResults()
- 8 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 338
Class
- EntityTraversal
- Base class for traversing entities.
Namespace
Drupal\gdpr_fieldsCode
public function getResults() {
try {
if ($this
->traverse()) {
return $this->results;
}
} catch (\Exception $exception) {
return NULL;
}
return NULL;
}