You are here

public function EntityRevisionParamConverter::applies in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/ParamConverter/EntityRevisionParamConverter.php \Drupal\Core\ParamConverter\EntityRevisionParamConverter::applies()
  2. 9 core/lib/Drupal/Core/ParamConverter/EntityRevisionParamConverter.php \Drupal\Core\ParamConverter\EntityRevisionParamConverter::applies()

File

core/lib/Drupal/Core/ParamConverter/EntityRevisionParamConverter.php, line 78

Class

EntityRevisionParamConverter
Parameter converter for upcasting entity revision IDs to full objects.

Namespace

Drupal\Core\ParamConverter

Code

public function applies($definition, $name, Route $route) {
  return isset($definition['type']) && strpos($definition['type'], 'entity_revision:') !== FALSE;
}