You are here

public function Helpers::isNsid in Flickr API Integration 8

Dectect NSID.

Parameters

string $id: Id.

Return value

false|int True False.

File

src/Service/Helpers.php, line 36

Class

Helpers
Class Helpers.

Namespace

Drupal\flickr_api\Service

Code

public function isNsid($id) {
  return preg_match('/^\\d+@N\\d+$/', $id);
}