protected static function ResourceVersionRouteEnhancer::isValidVersionIdentifier in JSON:API 8.2
Validates the user input.
Parameters
string $resource_version: The requested resource version identifier.
Return value
bool TRUE if the received resource version value is valid, FALSE otherwise.
1 call to ResourceVersionRouteEnhancer::isValidVersionIdentifier()
- ResourceVersionRouteEnhancer::enhance in src/
Revisions/ ResourceVersionRouteEnhancer.php - Update the defaults based on its own data and the request.
File
- src/
Revisions/ ResourceVersionRouteEnhancer.php, line 191
Class
- ResourceVersionRouteEnhancer
- Loads an appropriate revision for the requested resource version.
Namespace
Drupal\jsonapi\RevisionsCode
protected static function isValidVersionIdentifier($resource_version) {
return preg_match(static::VERSION_IDENTIFIER_VALIDATOR, $resource_version) === 1;
}