Documentation

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 = []

Methods

__call()

Forward the call to the source element

public __call(string $method, mixed $args) : mixed
Parameters
$method : string
$args : mixed
Attributes
#[ReturnTypeWillChange]

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
string

parsedownElement()

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
Return values
array<string|int, mixed>

        
On this page

Search results