public EntityLastInstalledSchemaRepository::setLastInstalledFieldStorageDefinitions($entity_type_id, array $storage_definitions)
Stores the entity type's field storage definitions in the application state.
Parameters
string $entity_type_id: The entity type identifier.
\Drupal\Core\Field\FieldStorageDefinitionInterface[] $storage_definitions: An array of field storage definitions.
Overrides EntityLastInstalledSchemaRepositoryInterface::setLastInstalledFieldStorageDefinitions
File
- core/lib/Drupal/Core/Entity/EntityLastInstalledSchemaRepository.php, line 68
Class
- EntityLastInstalledSchemaRepository
- Provides a repository for installed entity definitions.
Namespace
Drupal\Core\Entity
Code
public function setLastInstalledFieldStorageDefinitions($entity_type_id, array $storage_definitions) { $this->keyValueFactory->get('entity.definitions.installed')->set($entity_type_id . '.field_storage_definitions', $storage_definitions); }
Please login to continue.