$deprecations[]=newDeprecationMessage('The _access_node_revision routing requirement is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use _entity_access instead. See https://www.drupal.org/node/3161210.',$routing_file,0);
}
if(strpos($content,'_access_media_revision')){
$deprecations[]=newDeprecationMessage('The _access_media_revision routing requirement is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use _entity_access instead. See https://www.drupal.org/node/3161210.',$routing_file,0);
}
}
return$deprecations;
}
/**
* Finds all .routing.yml files for non-test extensions under a path.
*
* @param string $path
* Base path to find all .routing.yml files in.
*
* @return array
* A list of paths to .routing.yml files found under the base path.
*/
privatefunctiongetAllRoutingFiles(string$path){
$files=[];
foreach(glob($path.'/*.routing.yml')as$file){
// Make sure the filename matches rules for an extension. There may be
// routing.yml files in shipped configuration which would have more parts.
$this->assertEquals("The _access_node_revision routing requirement is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use _entity_access instead. See https://www.drupal.org/node/3161210.",$message['message']);