ILIAS  trunk Revision v12.0_alpha-1353-g41c21e85268
GroupReferenceObjectPropertiesProviders.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
25use ILIAS\UI\Component\Image\Factory as ImageFactory;
26use ILIAS\ResourceStorage\Services as StorageService;
27
29{
31 int $object_id,
32 ImageFactory $factory,
33 StorageService $irss
34 ): ?Image {
35 return null;
36 }
37
39 int $object_id,
40 IconFactory $factory,
41 StorageService $irss
42 ): ?CustomIcon {
43 $category = new ilObjGroup(
44 ilContainerReference::_lookupTargetId($object_id),
45 false
46 );
47
48 $custom_icon = $category->getObjectProperties()->getPropertyIcon()->getCustomIcon();
49 if ($custom_icon?->exists()) {
50 return $factory->custom(
51 $custom_icon->getFullPath(),
52 ''
53 );
54 }
55
56 return null;
57 }
58}
getObjectTypeSpecificIcon(int $object_id, IconFactory $factory, StorageService $irss)
getObjectTypeSpecificTileImage(int $object_id, ImageFactory $factory, StorageService $irss)
Class ilObjGroup.
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This is how the factory for UI elements looks.
Definition: Factory.php:28
This describes the behavior of an custom icon.
Definition: Custom.php:27
This is how a factory for icons looks like.
Definition: Factory.php:27