19declare(strict_types=1);
A component is the most general form of an entity in the UI.
getAction()
Get the action of the image.
const STANDARD
Types of images.
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...
getAlt()
Get the alternative text for screen readers.
getAdditionalHighResSources()
Returns an associative array containing all additional resources as $min_width_in_pixels => $source e...
withAlt(string $alt)
Set the alternative text for screen readers.
getType()
Get the type of the image.
getSource()
Get the source (path) of the image.
withAction($action)
Get an image like this with an action.
withSource(string $source)
Set the source (path) of the image.
Interface to be extended by components that have the possibility to bind to Javascript.
This is the interface for Blocks.
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.