Skip to content
docsv0.34.0

SectionRender

The mutable subject of a section's render lifecycle. Carried by `admin.section.before_render` (props are still open) and `admin.section.after_render` (the HTML is still open). A subscriber changes what it finds; the panel renders what is left. Milpa is event-driven: a section nobody can observe is a section nobody can extend.

SectionRender::__construct()

public function __construct(Milpa\Admin\Section\AdminSection $section, array $props, string $html = ''):

Parameters

Parameters of __construct()
NameTypeDescription
$sectionMilpa\Admin\Section\AdminSection
$propsarray<string, mixed>the props the component will mount with — mutable before render
$htmlstringthe rendered section — mutable after render