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); } } }
Please login to continue.