ACF\Pro\Fields\FlexibleContent
Layout::__construct
Constructs the class.
Метод класса: Layout{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Layout = new Layout(); $Layout->__construct( $field, $layout, $order, $value, $disabled, $renamed );
- $field(массив) (обязательный)
- The Flexible Content field the layout belongs to.
- $layout(массив) (обязательный)
- The layout to render.
- $order(int|строка) (обязательный)
- The order of the layout.
- $value(разное) (обязательный)
- The value of the layout.
- $disabled(true|false)
- If the layout is disabled.
По умолчанию:false - $renamed(строка)
- If the layout has been renamed, the new name of the layout.
По умолчанию:''
Список изменений
| С версии 6.5 | Введена. |
Код Layout::__construct() Layout:: construct 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;
}