Skip to content
Snippets Groups Projects

Issue #3452633 by DYdave: Broadened Gitlab CI tests coverage. Fixed tests for...

Merged David Suissa requested to merge issue/block_class-3452633:3452633-fix-fatal-typeerror into 2.0.x
4 files
+ 103
4
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -90,9 +90,14 @@ class BlockClassController extends ControllerBase {
$build['top'] = $helperMarkup;
// Fix compatibility support with versions >= 10.2 which use a string
// instead of an array for the second argument.
$extension_info = $this->extensionListModule->getExtensionInfo($projectMachineName);
$second_argument = (version_compare(\Drupal::VERSION, '10.2', '<')) ? $extension_info : $extension_info['name'];
// Only print list of administration pages if the project in question has
// any such pages associated with it.
$adminTasks = system_get_module_admin_tasks($projectMachineName, $this->extensionListModule->getExtensionInfo($projectMachineName));
$adminTasks = system_get_module_admin_tasks($projectMachineName, $second_argument);
if (empty($adminTasks)) {
return $build;
Loading