abstract class AbstractBlock (View source)

The abstract base block.

Methods

static string
render(object $data, Automad $Automad)

Render a paragraph block.

static string
classAttr(array $custom = array())

Return a class attribute for the wrapping block element.

Details

abstract static string render(object $data, Automad $Automad)

Render a paragraph block.

Parameters

object $data
Automad $Automad

Return Value

string the rendered HTML

static protected string classAttr(array $custom = array())

Return a class attribute for the wrapping block element.

Parameters

array $custom

Return Value

string the attribute string