\Charcoal\Ui\LayoutLayoutAwareTrait

Provides an implementation of {@see \Charcoal\Ui\Layout\LayoutAwareInterface}.

Summary

Methods
Properties
Constants
setLayoutBuilder()
setLayout()
layout()
No public properties found
No constants found
No protected methods found
$layoutBuilder
N/A
No private methods found
$layout
N/A

Properties

Methods

setLayoutBuilder()

setLayoutBuilder(\Charcoal\Ui\Layout\LayoutBuilder  $builder) : \Charcoal\Ui\Layout\DashboardInterface

Parameters

\Charcoal\Ui\Layout\LayoutBuilder $builder

The layout builder, to create customized layout object(s).

Returns

\Charcoal\Ui\Layout\DashboardInterface —

Chainable

setLayout()

setLayout(\Charcoal\Ui\Layout\LayoutInterface|array  $layout) : \Charcoal\Ui\Layout\DashboardInterface

Parameters

\Charcoal\Ui\Layout\LayoutInterface|array $layout

The layout object or structure.

Throws

\InvalidArgumentException

If the layout argument is not an object or layout structure.

Returns

\Charcoal\Ui\Layout\DashboardInterface —

Chainable