You are here

public function SerialStorageInterface::generateValueFromName in Serial Field 8

Generates a unique serial value (unique per entity bundle).

Parameters

string $storageName: Storage name.

bool $delete: Indicates if temporary records should be deleted.

Return value

int Unique serial id.

1 method overrides SerialStorageInterface::generateValueFromName()
SerialSQLStorage::generateValueFromName in src/SerialSQLStorage.php
Generates a unique serial value (unique per entity bundle).

File

src/SerialStorageInterface.php, line 55

Class

SerialStorageInterface
Defines an interface for serial storage classes.

Namespace

Drupal\serial

Code

public function generateValueFromName($storageName, $delete = TRUE);