function EntityLastInstalledSchemaRepository::getLastInstalledDefinition
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityLastInstalledSchemaRepository.php \Drupal\Core\Entity\EntityLastInstalledSchemaRepository::getLastInstalledDefinition()
- 10 core/lib/Drupal/Core/Entity/EntityLastInstalledSchemaRepository.php \Drupal\Core\Entity\EntityLastInstalledSchemaRepository::getLastInstalledDefinition()
- 11.x core/lib/Drupal/Core/Entity/EntityLastInstalledSchemaRepository.php \Drupal\Core\Entity\EntityLastInstalledSchemaRepository::getLastInstalledDefinition()
Overrides EntityLastInstalledSchemaRepositoryInterface::getLastInstalledDefinition
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityLastInstalledSchemaRepository.php, line 33
Class
- EntityLastInstalledSchemaRepository
- Provides a repository for installed entity definitions.
Namespace
Drupal\Core\EntityCode
public function getLastInstalledDefinition($entity_type_id) {
return $this->keyValueFactory
->get('entity.definitions.installed')
->get($entity_type_id . '.entity_type');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.