ILIAS  release_5-2 Revision v5.2.25-18-g3f80b82851
ILIAS\UI\Component\Image\Image Interface Reference
+ Inheritance diagram for ILIAS\UI\Component\Image\Image:
+ Collaboration diagram for ILIAS\UI\Component\Image\Image:

Public Member Functions

 withSource ($source)
 Set the source (path) of the image. More...
 
 getSource ()
 Get the source (path) of the image. More...
 
 getType ()
 Get the type of the image. More...
 
 withAlt ($alt)
 Set the alternative text for screen readers. More...
 
 getAlt ()
 Get the alternative text for screen readers. More...
 

Data Fields

const STANDARD = "standard"
 Types of images. More...
 
const RESPONSIVE = "responsive"
 

Detailed Description

Definition at line 13 of file Image.php.

Member Function Documentation

◆ getAlt()

ILIAS\UI\Component\Image\Image::getAlt ( )

Get the alternative text for screen readers.

Returns
string

◆ getSource()

ILIAS\UI\Component\Image\Image::getSource ( )

Get the source (path) of the image.

Returns
string

◆ getType()

ILIAS\UI\Component\Image\Image::getType ( )

Get the type of the image.

Returns
string

◆ withAlt()

ILIAS\UI\Component\Image\Image::withAlt (   $alt)

Set the alternative text for screen readers.

Parameters
string$alt
Returns

◆ withSource()

ILIAS\UI\Component\Image\Image::withSource (   $source)

Set the source (path) of the image.

The complete path to the image has to be provided.

Parameters
string$source
Returns

Field Documentation

◆ RESPONSIVE

const ILIAS\UI\Component\Image\Image::RESPONSIVE = "responsive"

Definition at line 18 of file Image.php.

◆ STANDARD

const ILIAS\UI\Component\Image\Image::STANDARD = "standard"

Types of images.

Definition at line 17 of file Image.php.


The documentation for this interface was generated from the following file: