public EntityLastInstalledSchemaRepository::setLastInstalledDefinition(EntityTypeInterface $entity_type)
Stores the entity type definition in the application state.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.
Return value
$this
Overrides EntityLastInstalledSchemaRepositoryInterface::setLastInstalledDefinition
File
- core/lib/Drupal/Core/Entity/EntityLastInstalledSchemaRepository.php, line 40
Class
- EntityLastInstalledSchemaRepository
- Provides a repository for installed entity definitions.
Namespace
Drupal\Core\Entity
Code
1 2 3 4 5 | public function setLastInstalledDefinition(EntityTypeInterface $entity_type ) { $entity_type_id = $entity_type ->id(); $this ->keyValueFactory->get( 'entity.definitions.installed' )->set( $entity_type_id . '.entity_type' , $entity_type ); return $this ; } |
Please login to continue.