@@ -321,15 +321,6 @@ protected function buildHookInfo() {
}
}
/**
* {@inheritdoc}
*/
publicfunctiongetImplementations($hook){
@trigger_error('ModuleHandlerInterface::getImplementations() is deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. Instead you should use ModuleHandlerInterface::invokeAllWith() for hook invocations, or you should use ModuleHandlerInterface::hasImplementations() to determine if hooks implementations exist. See https://www.drupal.org/node/3000490',E_USER_DEPRECATED);
@trigger_error('ModuleHandlerInterface::implementsHook() is deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. Instead you should use ModuleHandlerInterface::hasImplementations() with the $modules argument. See https://www.drupal.org/node/3000490',E_USER_DEPRECATED);
@@ -320,32 +320,6 @@ public function testImplementsHookModuleEnabled() {
$this->assertFalse($module_handler->hasImplementations('hook','module_handler_test_no_hook'),'Missing implementation not found.');
}
/**
* Tests deprecation of the ::getImplementations method.
*
* @covers ::getImplementations
* @covers ::getImplementationInfo
* @covers ::buildImplementationInfo
*
* @group legacy
*/
publicfunctiontestGetImplementations(){
$this->expectDeprecation('ModuleHandlerInterface::getImplementations() is deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. Instead you should use ModuleHandlerInterface::invokeAllWith() for hook invocations, or you should use ModuleHandlerInterface::hasImplementations() to determine if hooks implementations exist. See https://www.drupal.org/node/3000490');
* Tests deprecation of the ::implementsHook method.
*
* @covers ::implementsHook
*
* @group legacy
*/
publicfunctiontestImplementsHook(){
$this->expectDeprecation('ModuleHandlerInterface::implementsHook() is deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. Instead you should use ModuleHandlerInterface::hasImplementations() with the $modules argument. See https://www.drupal.org/node/3000490');