function FileExampleSubmitHandlerHelper::isDevelDumper
Checks if the given object is an instance of DevelDumperInterface.
Parameters
object $object: The object to check.
Return value
bool Returns TRUE if the object is an instance of DevelDumperInterface, FALSE otherwise.
1 call to FileExampleSubmitHandlerHelper::isDevelDumper()
- FileExampleSubmitHandlerHelper::handleShowSession in modules/
file_example/ src/ FileExampleSubmitHandlerHelper.php - Utility submit function to show the contents of $_SESSION.
File
-
modules/
file_example/ src/ FileExampleSubmitHandlerHelper.php, line 501
Class
- FileExampleSubmitHandlerHelper
- A submit handler helper class for the file_example module.
Namespace
Drupal\file_exampleCode
protected function isDevelDumper(object $object) : bool {
if ($this->moduleHandler
->moduleExists('devel')) {
return in_array('DevelDumperInterface', class_implements($object));
}
return FALSE;
}