- πΊπΈUnited States smustgrave
Is this something that will require a test case?
if (!$theme instanceof Extension) {
$themes = \Drupal::service('theme_handler')->listInfo();
if (!isset($themes[$theme])) {
return array();
}
$theme = $themes[$theme];
}
system_region_list() is retrieving info on all installed themes, when it just wants the extension object for the current theme. I'm not sure if there's a performance cost, but even if there isn't, it's clearer if the code just gets the one theme it wants.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Is this something that will require a test case?