function install_core_entity_type_definitions

install_core_entity_type_definitions()

Installs entity type definitions provided by core.

File

core/includes/install.core.inc, line 1517
API functions for installing Drupal.

Code

function install_core_entity_type_definitions() {
  $update_manager = \Drupal::entityDefinitionUpdateManager();
  foreach (\Drupal::entityManager()->getDefinitions() as $entity_type) {
    if ($entity_type->getProvider() == 'core') {
      $update_manager->installEntityType($entity_type);
    }
  }
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!includes!install.core.inc/function/install_core_entity_type_definitions/8.1.x