Link
in package
implements
RenderableInterface, MediaLinkInterface
uses
ParsedownHtmlTrait
Class Link
Table of Contents
Interfaces
- RenderableInterface
- Interface RenderableInterface
- MediaLinkInterface
- Class implements media file interface.
Properties
- $attributes : array<string|int, mixed>
- $parsedown : Parsedown|null
- $source : MediaObjectInterface|MediaLinkInterface
Methods
- __call() : mixed
- Forward the call to the source element
- __construct() : mixed
- Construct.
- html() : string
- Return HTML markup from the medium.
- parsedownElement() : array<string|int, mixed>
- Get an element (is array) that can be rendered by the Parsedown engine
Properties
$attributes
protected
array<string|int, mixed>
$attributes
= []
$parsedown
protected
Parsedown|null
$parsedown
$source
protected
MediaObjectInterface|MediaLinkInterface
$source
Methods
__call()
Forward the call to the source element
public
__call(string $method, mixed $args) : mixed
Parameters
- $method : string
- $args : mixed
Attributes
- #[ReturnTypeWillChange]
__construct()
Construct.
public
__construct(array<string|int, mixed> $attributes, MediaObjectInterface $medium) : mixed
Parameters
- $attributes : array<string|int, mixed>
- $medium : MediaObjectInterface
html()
Return HTML markup from the medium.
public
html([string|null $title = null ][, string|null $alt = null ][, string|null $class = null ][, string|null $id = null ][, bool $reset = true ]) : string
Parameters
- $title : string|null = null
- $alt : string|null = null
- $class : string|null = null
- $id : string|null = null
- $reset : bool = true
Return values
stringparsedownElement()
Get an element (is array) that can be rendered by the Parsedown engine
public
parsedownElement([string|null $title = null ][, string|null $alt = null ][, string|null $class = null ][, string|null $id = null ][, bool $reset = true ]) : array<string|int, mixed>
Parameters
- $title : string|null = null
- $alt : string|null = null
- $class : string|null = null
- $id : string|null = null
- $reset : bool = true