Display: Add support for ObjectIcon and StateIcon first param in Display::getMdiIcon()

pull/5031/head
Yannick Warnier 11 months ago
parent 953e122a74
commit 71640558f1
  1. 2
      public/main/inc/lib/display.lib.php

@ -2220,7 +2220,7 @@ class Display
return $html;
}
public static function getMdiIcon(string|ActionIcon|ToolIcon $name, string $additionalClass = null, string $style = null, int $pixelSize = null, string $title = null, array $additionalAttributes = null): string
public static function getMdiIcon(string|ActionIcon|ToolIcon|ObjectIcon|StateIcon $name, string $additionalClass = null, string $style = null, int $pixelSize = null, string $title = null, array $additionalAttributes = null): string
{
$sizeString = '';
if (!empty($pixelSize)) {

Loading…
Cancel
Save