public function SerialSQLStorage::createStorageFromName in Serial Field 8
Creates an assistant serial storage for a new created field.
Parameters
string $storageName: Storage name.
Overrides SerialStorageInterface::createStorageFromName
1 call to SerialSQLStorage::createStorageFromName()
- SerialSQLStorage::createStorage in src/
SerialSQLStorage.php - Creates an assistant serial storage for a new created field.
File
- src/
SerialSQLStorage.php, line 164
Class
- SerialSQLStorage
- Serial storage service definition.
Namespace
Drupal\serialCode
public function createStorageFromName($storageName) {
$dbSchema = Database::getConnection()
->schema();
if (!$dbSchema
->tableExists($storageName)) {
$dbSchema
->createTable($storageName, $this
->getSchema());
}
}