19 declare(strict_types=1);
78 public function getType(): string;
89 public function getAlt(): string;
const STANDARD
Types of images.
getAdditionalHighResSources()
Returns an associative array containing all additional resources as $min_width_in_pixels => $source e...
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
getType()
Get the type of the image.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
withAction($action)
Get an image like this with an action.
getAlt()
Get the alternative text for screen readers.
getAction()
Get the action of the image.
This is the interface for Blocks.
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.
withAdditionalHighResSource(string $source, int $min_width_in_pixels)
Add an additional source (path) pointing to an image of higher resolution than the one set through wi...