ILIAS  release_8 Revision v8.23
Image.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
21 namespace ILIAS\UI\Component\Image;
22 
27 
35 {
39  public const STANDARD = "standard";
40  public const RESPONSIVE = "responsive";
41 
45  public function withSource(string $source): Image;
46 
50  public function getSource(): string;
51 
55  public function getType(): string;
56 
60  public function withAlt(string $alt): Image;
61 
62 
66  public function getAlt(): string;
67 
72  public function withAction($action): Image;
73 
78  public function getAction();
79 }
const STANDARD
Types of images.
Definition: Image.php:39
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
getType()
Get the type of the image.
withAction($action)
Get an image like this with an action.
Definition: Image.php:105
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Factory.php:21
getAlt()
Get the alternative text for screen readers.
getAction()
Get the action of the image.
withAlt(string $alt)
Set the alternative text for screen readers.
getSource()
Get the source (path) of the image.
withSource(string $source)
Set the source (path) of the image.
$source
Definition: metadata.php:93