public function EckEntityTypeBundleInfo::entityTypeHasBundles in Entity Construction Kit (ECK) 8
Determines if a given entity type has bundles.
Parameters
string $entity_type: The entity type id.
Return value
bool Does it have bundles?
File
- src/
EckEntityTypeBundleInfo.php, line 52
Class
- EckEntityTypeBundleInfo
- Holds bundle info for eck entity types.
Namespace
Drupal\eckCode
public function entityTypeHasBundles($entity_type) {
return !empty($this
->getBundleInfo($entity_type));
}