ACF\Pro\Fields\FlexibleContent

Render::setupprivateACF 6.5

Prepares the field for rendering.

Method of the class: Render{}

No Hooks.

Returns

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->setup();

Changelog

Since 6.5 Introduced.

Render::setup() code ACF 6.8.8

private function setup() {
	$layouts = array();

	if ( ! empty( $this->field['layouts'] ) ) {
		foreach ( $this->field['layouts'] as $layout ) {
			$layouts[ $layout['name'] ] = $layout;
		}
	}

	$this->layouts = $layouts;
}