You are here

public function SerialStorageInterface::initOldEntries in Serial Field 8

Initializes the value of a new serial field in existing entities.

Parameters

string $entityTypeId: Entity type id.

string $entityBundle: Entity bundle (entity type) name.

string $fieldName: Field name.

int $startValue: The value to start the serial increment with.

Return value

int Amount of entries that were updated.

1 method overrides SerialStorageInterface::initOldEntries()
SerialSQLStorage::initOldEntries in src/SerialSQLStorage.php
Initializes the value of a new serial field in existing entities.

File

src/SerialStorageInterface.php, line 143

Class

SerialStorageInterface
Defines an interface for serial storage classes.

Namespace

Drupal\serial

Code

public function initOldEntries($entityTypeId, $entityBundle, $fieldName, $startValue);