Skip to content
Snippets Groups Projects

Issue #3458479: Require at least Drupal 10.3 and remove any usage of deprecated classes, methods, constants, or functions

Merged Issue #3458479: Require at least Drupal 10.3 and remove any usage of deprecated classes, methods, constants, or functions
1 file
+ 16
17
Compare changes
  • Side-by-side
  • Inline
@@ -9,7 +9,6 @@
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Messenger\MessengerInterface;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use Drupal\devel\DevelDumperInterface;
use Drupal\file\FileRepositoryInterface;
use Drupal\file_example\Traits\DumperTrait;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
@@ -488,22 +487,22 @@ public function handleResetSession(array &$form, FormStateInterface $form_state)
$this->messenger->addMessage('Session reset.');
}
/**
* Checks if the given object is an instance of DevelDumperInterface.
*
* @param object $object
* The object to check.
*
* @return bool
* Returns TRUE if the object is an instance of DevelDumperInterface,
* FALSE otherwise.
*/
protected function isDevelDumper(object $object): bool {
if ($this->moduleHandler->moduleExists('devel')) {
return in_array('DevelDumperInterface', class_implements($object));
}
return FALSE;
/**
* Checks if the given object is an instance of DevelDumperInterface.
*
* @param object $object
* The object to check.
*
* @return bool
* Returns TRUE if the object is an instance of DevelDumperInterface,
* FALSE otherwise.
*/
protected function isDevelDumper(object $object): bool {
if ($this->moduleHandler->moduleExists('devel')) {
return in_array('DevelDumperInterface', class_implements($object));
}
return FALSE;
}
}
Loading