@@ -110,54 +110,6 @@ public function getPatternOutline() {
return$this->patternOutline;
}
/**
* Returns the options.
*
* @deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. No direct
* replacement is provided.
*
* @see https://www.drupal.org/node/3159706
*
* @return array
* The options.
*/
publicfunctiongetOptions(){
@trigger_error(__METHOD__.'() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. No direct replacement is provided. See https://www.drupal.org/node/3159706',E_USER_DEPRECATED);
return$this->route->getOptions();
}
/**
* Returns the defaults.
*
* @deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. No direct
* replacement is provided.
*
* @see https://www.drupal.org/node/3159706
*
* @return array
* The defaults.
*/
publicfunctiongetDefaults(){
@trigger_error(__METHOD__.'() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. No direct replacement is provided. See https://www.drupal.org/node/3159706',E_USER_DEPRECATED);
return$this->route->getDefaults();
}
/**
* Returns the requirements.
*
* @deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. No direct
* replacement is provided.
*
* @see https://www.drupal.org/node/3159706
*
* @return array
* The requirements.
*/
publicfunctiongetRequirements(){
@trigger_error(__METHOD__.'() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. No direct replacement is provided. See https://www.drupal.org/node/3159706',E_USER_DEPRECATED);
@trigger_error(__METHOD__.'() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. No direct replacement is provided. See https://www.drupal.org/node/3151009',E_USER_DEPRECATED);
* Gets the total count of routes provided by the router.
*
* @return int
* Number of routes.
*
* @deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. No direct
* replacement is provided.
*
* @see https://www.drupal.org/node/3151009
*/
publicfunctiongetRoutesCount(){
@trigger_error(__METHOD__.'() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. No direct replacement is provided. See https://www.drupal.org/node/3151009',E_USER_DEPRECATED);
return$this->connection->query("SELECT COUNT(*) FROM {".$this->connection->escapeTable($this->tableName)."}")->fetchField();
@trigger_error(__METHOD__.'() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. No direct replacement is provided. See https://www.drupal.org/node/3151009',E_USER_DEPRECATED);
* Gets the total count of routes provided by the router.
*
* @return int
* Number of routes.
*
* @deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. No direct
* replacement is provided.
*
* @see https://www.drupal.org/node/3151009
*/
publicfunctiongetRoutesCount(){
@trigger_error(__METHOD__.'() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. No direct replacement is provided. See https://www.drupal.org/node/3151009',E_USER_DEPRECATED);
@@ -731,53 +731,6 @@ public function testGetRoutesByPatternWithLongPatterns() {
$this->assertCount(7,$candidates);
}
/**
* Tests getRoutesPaged().
*
* @group legacy
*/
publicfunctiontestGetRoutesPaged(){
$this->expectDeprecation('Drupal\Core\Routing\RouteProvider::getRoutesPaged() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. No direct replacement is provided. See https://www.drupal.org/node/3151009');
$this->expectDeprecation('Drupal\Core\Routing\RouteProvider::getRoutesCount() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. No direct replacement is provided. See https://www.drupal.org/node/3151009');
$this->expectDeprecation('Drupal\Core\Routing\CompiledRoute::getOptions() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. No direct replacement is provided. See https://www.drupal.org/node/3159706');
* Tests to make sure we get an array when dynamically setting.
*
* @covers ::getOptions
*/
publicfunctiontestOptionsDynamicallySet(){
$this->expectDeprecation('Drupal\Core\Routing\CompiledRoute::getOptions() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. No direct replacement is provided. See https://www.drupal.org/node/3159706');
$this->compiled_route->route=$this->mocked_route;
$this->compiled_route->getOptions();
}
/**
* Tests for deprecated message and no PHP error.
*
* @covers ::getDefaults
*/
publicfunctiontestDefaultsDeprecated(){
$this->expectDeprecation('Drupal\Core\Routing\CompiledRoute::getDefaults() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. No direct replacement is provided. See https://www.drupal.org/node/3159706');
* Tests to make sure we get an array when dynamically setting.
*
* @covers ::getDefaults
*/
publicfunctiontestDefaultsDynamicallySet(){
$this->expectDeprecation('Drupal\Core\Routing\CompiledRoute::getDefaults() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. No direct replacement is provided. See https://www.drupal.org/node/3159706');
$this->compiled_route->route=$this->mocked_route;
$this->compiled_route->getDefaults();
}
/**
* @covers ::getRequirements
*/
publicfunctiontestRequirementsDeprecated(){
$this->expectDeprecation('Drupal\Core\Routing\CompiledRoute::getRequirements() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. No direct replacement is provided. See https://www.drupal.org/node/3159706');
* Tests to make sure we get an array when dynamically setting.
*
* @covers ::getRequirements
*/
publicfunctiontestRequirementsDynamicallySet(){
$this->expectDeprecation('Drupal\Core\Routing\CompiledRoute::getRequirements() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. No direct replacement is provided. See https://www.drupal.org/node/3159706');