Method | Description | |
---|---|---|
__construct ( string $label, string $name, $key ) | ||
add_brick ( |
Dont add more than one brick to a layout | |
add_field ( $arg ) | ||
add_flexible_content ( |
||
add_repeater ( |
||
add_sub_field ( |
||
get_setting ( $key, string $default_value = '' ) : string | ||
get_settings ( ) : array | ||
set_setting ( $name, $value ) |
Method | Description | |
---|---|---|
add_common_field ( string $common_field_array_key, string $key, array $settings = [] ) |
public __construct ( string $label, string $name, $key ) | ||
$label | string | |
$name | string | |
$key |
public add_brick ( |
||
$brick |
protected add_common_field ( string $common_field_array_key, string $key, array $settings = [] ) | ||
$common_field_array_key | string | A key corresponding to an item in the fewbricks_common_fields array |
$key | string | A site wide unique key for the field |
$settings | array | Anye extra settings to set on the field. Can be used to override existing settings as well. |
public add_flexible_content ( |
||
$flexible_content |
public add_repeater ( |
||
$repeater |
public add_sub_field ( |
||
$field_object |
public get_setting ( $key, string $default_value = '' ) : string | ||
$key | ||
$default_value | string | |
return | string |