You are here

public function EntityApiConfiguration::getEntityType in Configuration Management 7.2

Overrides Drupal\configuration\Config\Configuration::getEntityType().

File

lib/Drupal/configuration/Config/EntityApiConfiguration.php, line 114
Definition of Drupal\configuration\Config\EntityApiConfiguration.

Class

EntityApiConfiguration

Namespace

Drupal\configuration\Config

Code

public function getEntityType() {
  $entity = entity_load_single($this
    ->getComponent(), $this
    ->getIdentifier());
  $info = $entity
    ->entityInfo();
  if (!empty($info['bundle of'])) {
    return $info['bundle of'];
  }
}