Class Picture

HtmlObject\Element
Extended by Concrete\Core\Html\Object\Picture

Methods summary

public
# __construct( array $sources, $fallbackSrc, $attributes = array() )
public static Table
# create( string $sources = array(), string|null|Tag $fallbackSrc = false, array $attributes = array() )

Static alias for constructor

public
# sources( $sources )
public
# fallback( $src )
public
# alt( $alt )
public
# title( $title )
public
# addClass( $classes )

Properties summary

protected string $element

Default element

# 'picture'
protected boolean $isSelfClosing

Whether the element is self closing

# false
protected string $defaultChild

Default element for nested children

# 'source'