public function EntityRevisionParamConverter::applies in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/ParamConverter/EntityRevisionParamConverter.php \Drupal\Core\ParamConverter\EntityRevisionParamConverter::applies()
- 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\ParamConverterCode
public function applies($definition, $name, Route $route) {
return isset($definition['type']) && strpos($definition['type'], 'entity_revision:') !== FALSE;
}