MDL-77105 mod_url: Declare filtericon custom data

* Set a custom data `filtericon` when the icon being rendered for the
URL resource is not equal to the default plugin icon.
This commit is contained in:
Jun Pataleta 2023-02-10 22:34:45 +08:00
parent f10d132bdc
commit 6077aae181

View File

@ -245,6 +245,8 @@ function url_get_coursemodule_info($coursemodule) {
}
$info->customdata['display'] = $display;
// The icon will be filtered if it will be the default module icon.
$info->customdata['filtericon'] = empty($info->icon);
return $info;
}