public function EntityLastInstalledSchemaRepository::setLastInstalledFieldStorageDefinition
public EntityLastInstalledSchemaRepository::setLastInstalledFieldStorageDefinition(FieldStorageDefinitionInterface $storage_definition)
Stores the field storage definition in the application state.
Parameters
\Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The field storage definition.
Overrides EntityLastInstalledSchemaRepositoryInterface::setLastInstalledFieldStorageDefinition
File
- core/lib/Drupal/Core/Entity/EntityLastInstalledSchemaRepository.php, line 75
Class
- EntityLastInstalledSchemaRepository
- Provides a repository for installed entity definitions.
Namespace
Drupal\Core\EntityCode
public function setLastInstalledFieldStorageDefinition(FieldStorageDefinitionInterface $storage_definition) { $entity_type_id = $storage_definition->getTargetEntityTypeId(); $definitions = $this->getLastInstalledFieldStorageDefinitions($entity_type_id); $definitions[$storage_definition->getName()] = $storage_definition; $this->setLastInstalledFieldStorageDefinitions($entity_type_id, $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::setLastInstalledFieldStorageDefinition/8.1.x