protected function ConfigDependencyTest::getDependentIds in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/config/src/Tests/ConfigDependencyTest.php \Drupal\config\Tests\ConfigDependencyTest::getDependentIds()
Gets a list of identifiers from an array of configuration entities.
Parameters
\Drupal\Core\Config\Entity\ConfigEntityInterface[] $dependents: An array of configuration entities.
Return value
array An array with values of entity_type_id:ID
1 call to ConfigDependencyTest::getDependentIds()
- ConfigDependencyTest::testDependencyManagement in core/
modules/ config/ src/ Tests/ ConfigDependencyTest.php - Tests creating dependencies on configuration entities.
File
- core/
modules/ config/ src/ Tests/ ConfigDependencyTest.php, line 474 - Contains \Drupal\config\Tests\ConfigDependencyTest.
Class
- ConfigDependencyTest
- Tests for configuration dependencies.
Namespace
Drupal\config\TestsCode
protected function getDependentIds(array $dependents) {
$dependent_ids = array();
foreach ($dependents as $dependent) {
$dependent_ids[] = $dependent
->getEntityTypeId() . ':' . $dependent
->id();
}
return $dependent_ids;
}