You are here

protected function EventMeta::entityTypeHasBundles in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 src/EventMeta.php \Drupal\rng\EventMeta::entityTypeHasBundles()
  2. 8 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 656

Class

EventMeta
Meta event wrapper for RNG.

Namespace

Drupal\rng

Code

protected function entityTypeHasBundles($entity_type_id) {
  $entity_type = $this->entityManager
    ->getDefinition($entity_type_id);
  return $entity_type
    ->getBundleEntityType() !== NULL;
}