public function EckEntityTypeBundleInfo::entityTypeBundleCount in Entity Construction Kit (ECK) 8
The entity type bundle count.
Parameters
string $entity_type: The entity type id.
Return value
int The number of bundles for the given entity type.
File
- src/
EckEntityTypeBundleInfo.php, line 78
Class
- EckEntityTypeBundleInfo
- Holds bundle info for eck entity types.
Namespace
Drupal\eckCode
public function entityTypeBundleCount($entity_type) {
return \count($this
->getBundleInfo($entity_type));
}