function ExportMetadata::getDependencies
Returns the dependencies of the exported entity.
Return value
string[][] An array of dependencies, where each dependency is a tuple with two elements: an entity type ID, and a UUID.
File
-
core/
lib/ Drupal/ Core/ DefaultContent/ ExportMetadata.php, line 75
Class
- ExportMetadata
- Collects metadata about an entity being exported.
Namespace
Drupal\Core\DefaultContentCode
public function getDependencies() : array {
$dependencies = [];
foreach ($this->metadata['depends'] ?? [] as $uuid => $entity_type_id) {
$dependencies[] = [
$entity_type_id,
$uuid,
];
}
return $dependencies;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.