protected function EventMeta::entityTypeHasBundles in RNG - Events and Registrations 8.2
Same name and namespace in other branches
- 8 src/EventMeta.php \Drupal\rng\EventMeta::entityTypeHasBundles()
- 3.x src/EventMeta.php \Drupal\rng\EventMeta::entityTypeHasBundles()
Determine whether an entity type uses a separate bundle entity type.
Parameters
string $entity_type_id: An entity type Id.
Return value
bool Whether an entity type uses a separate bundle entity type.
3 calls to EventMeta::entityTypeHasBundles()
- EventMeta::canRegisterProxyIdentities in src/
EventMeta.php - Determine if the current user has proxy register access.
- EventMeta::countProxyIdentities in src/
EventMeta.php - Count number of identities the current user has proxy register access.
- EventMeta::identitiesCanRegister in src/
EventMeta.php - Determine if identities can register.
File
- src/
EventMeta.php, line 647
Class
- EventMeta
- Meta event wrapper for RNG.
Namespace
Drupal\rngCode
protected function entityTypeHasBundles($entity_type_id) {
$entity_type = $this->entityManager
->getDefinition($entity_type_id);
return $entity_type
->getBundleEntityType() !== NULL;
}