public function WebformEntityStorage::getNextSerial in Webform 8.5
Same name and namespace in other branches
- 6.x src/WebformEntityStorage.php \Drupal\webform\WebformEntityStorage::getNextSerial()
Returns the next serial number.
Return value
int The next serial number.
Overrides WebformEntityStorageInterface::getNextSerial
File
- src/
WebformEntityStorage.php, line 259
Class
- WebformEntityStorage
- Storage controller class for "webform" configuration entities.
Namespace
Drupal\webformCode
public function getNextSerial(WebformInterface $webform) {
return $this->database
->select('webform', 'w')
->fields('w', [
'next_serial',
])
->condition('webform_id', $webform
->id())
->execute()
->fetchField();
}