Go to the source code of this file.
◆ with_object_icon_and_certificate()
with_object_icon_and_certificate |
( |
| ) |
|
Definition at line 5 of file with_object_icon_and_certificate.php.
6{
7
10 $renderer =
$DIC->ui()->renderer();
11
12 $icon =
$f->symbol()->icon()->standard(
"crs",
'Course')->withIsOutlined(
true);
13
14 $content =
$f->listing()->descriptive(
15 array(
16 "Entry 1" => "Some text",
17 "Entry 2" => "Some more text",
18 )
19 );
20
21 $image =
$f->image()->responsive(
22 "./templates/default/images/HeaderIcon.svg",
23 "Thumbnail Example"
24 );
25
26 $card =
$f->card()->repositoryObject(
27 "Title",
28 $image
29 )->withObjectIcon(
30 $icon
31 )->withCertificateIcon(
32 true
33 )->withSections(
34 array(
35 $content,
36 $content,
37 )
38 );
39
40
41 return $renderer->render($card);
42}
References $DIC, and Vendor\Package\$f.