render() generates the HTML for the component, including generic containment. Generally subclasses shouldn't override this, but will override renderContent. The parent component (typically layout components) can provide extra properties that affect the containment.
Signature
public function render(Context
$context,
[Map
$extras = NULL] )
Parameters
$context
—
object
for binding.
$extras
—
object
that can contain the following keys: - "classes" - an array of CSS class names to be added. - "styles" - a map of style definitions that are aggregated into the style attribute of the container. - "attrs" - a map of additional attributes to add to the containment tag. This shouldn't include "class" or "style" keys. Values should not be quoted.