ACF\Pro\Fields\FlexibleContent

Layout::__construct │ public │ ACF 6.5

Constructs the class.

Method of the class: Layout{}

No Hooks.

Returns

null. Nothing (null).

Usage

$Layout = new Layout();
$Layout->__construct( $field, $layout, $order, $value, $disabled, $renamed );
$field(array) (required)
The Flexible Content field the layout belongs to.
$layout(array) (required)
The layout to render.
$order(int|string) (required)
The order of the layout.
$value(mixed) (required)
The value of the layout.
$disabled(true|false)
If the layout is disabled.
Default: false
$renamed(string)
If the layout has been renamed, the new name of the layout.
Default: ''

Changelog

Since 6.5 Introduced.

Layout::__construct() code ACF 6.8.8

public function __construct( $field, $layout, $order, $value, $disabled = false, $renamed = '' ) {
	$this->field    = $field;
	$this->layout   = $layout;
	$this->order    = $order;
	$this->value    = $value;
	$this->disabled = $disabled;
	$this->renamed  = $renamed;
}