install_core_entity_type_definitions

install_core_entity_type_definitions()

Installs entity type definitions provided by core.

File

core/includes/install.core.inc, line 1519
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);
    }
  }
}
doc_Drupal
2016-10-29 09:20:59
Comments
Leave a Comment

Please login to continue.