public function EntityLastInstalledSchemaRepository::setLastInstalledFieldStorageDefinitions
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\EntityCode
public function setLastInstalledFieldStorageDefinitions($entity_type_id, array $storage_definitions) { $this->keyValueFactory->get('entity.definitions.installed')->set($entity_type_id . '.field_storage_definitions', $storage_definitions); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityLastInstalledSchemaRepository.php/function/EntityLastInstalledSchemaRepository::setLastInstalledFieldStorageDefinitions/8.1.x