You are here

protected function AAction::validateInteger in N1ED - Visual editor as CKEditor plugin with Bootstrap support 8.2

Validates integer and returns default value if null.

1 call to AAction::validateInteger()
ActionUploadCommit::validateSize in src/Flmngr/FileUploaderServer/lib/action/ActionUploadCommit.php
Validates size options of the image.

File

src/Flmngr/FileUploaderServer/lib/action/AAction.php, line 41

Class

AAction
Abstract action - processor for any request. External code executes run() method of set config and returnes Resp* object as data structure to return via HTTP.

Namespace

Drupal\n1ed\Flmngr\FileUploaderServer\lib\action

Code

protected function validateInteger($i, $defaultValue) {
  return $i === NULL ? $defaultValue : $i;
}