public static function EntityType::loadMultipleByName in Entity Construction Kit (ECK) 7.2
Parameters
string[] $names:
Return value
2 calls to EntityType::loadMultipleByName()
- eck_entity_type_features_export in ./
eck.features.inc - Implements hook_features_export().
- eck_entity_type_features_export_render in ./
eck.features.inc - Implements hook_features_export_render().
File
- ./
eck.classes.inc, line 232 - Classes for all the different objects used in ECK.
Class
- EntityType
- An entity type database object.
Code
public static function loadMultipleByName(array $names) {
$entityTypes = array();
foreach ($names as $name) {
$entityType = self::loadByName($name);
if (!empty($entityType)) {
$entityTypes[$name] = $entityType;
}
}
return $entityTypes;
}