You are here

public function EntityLastInstalledSchemaRepository::getLastInstalledDefinition in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/EntityLastInstalledSchemaRepository.php \Drupal\Core\Entity\EntityLastInstalledSchemaRepository::getLastInstalledDefinition()
  2. 9 core/lib/Drupal/Core/Entity/EntityLastInstalledSchemaRepository.php \Drupal\Core\Entity\EntityLastInstalledSchemaRepository::getLastInstalledDefinition()

File

core/lib/Drupal/Core/Entity/EntityLastInstalledSchemaRepository.php, line 52

Class

EntityLastInstalledSchemaRepository
Provides a repository for installed entity definitions.

Namespace

Drupal\Core\Entity

Code

public function getLastInstalledDefinition($entity_type_id) {
  return $this
    ->getLastInstalledDefinitions()[$entity_type_id] ?? NULL;
}