public function FlexiformFormEntityManagerDefault::checkForDependants in Flexiform 7
Find out if any entities depend on this entity.
File
- includes/
flexiform.form_entity_manager.inc, line 417 - Contains the default entity manager for flexiforms.
Class
- FlexiformFormEntityManagerDefault
- Class that manages entities in a flexiform.
Code
public function checkForDependants($namespace) {
$dependants = array();
foreach ($this->entitySettings as $curNamespace => $settings) {
if (!empty($settings['parameters'])) {
foreach ($settings['parameters'] as $param => $paramNamespace) {
if ($namespace === $paramNamespace) {
$dependants[$curNamespace] = $settings['label'];
}
}
}
}
return $dependants;
}