protected function ExtraFieldManagerBase::getEntityBundles in Extra Field 8.2
Returns all bundles of an entity type.
Parameters
string $entityType: The entity type to get the data of.
Return value
array Array of bundle names.
1 call to ExtraFieldManagerBase::getEntityBundles()
- ExtraFieldManagerBase::allEntityBundles in src/
Plugin/ ExtraFieldManagerBase.php - Returns the bundles that are defined for an entity type.
File
- src/
Plugin/ ExtraFieldManagerBase.php, line 191
Class
- ExtraFieldManagerBase
- Base class for Extra Field plugin managers.
Namespace
Drupal\extra_field\PluginCode
protected function getEntityBundles($entityType) {
return $this
->getEntityTypeManager()
->getStorage($entityType)
->getQuery()
->execute();
}