From bc2abb98b455c52d3e7f47cd13520b3c71fe721c Mon Sep 17 00:00:00 2001 From: Casey Dwyer Date: Fri, 6 Oct 2023 09:01:08 -0500 Subject: [PATCH] Update Toggle.php New config field to supplement `inline_label`, when value is true. --- src/Fieldtypes/Toggle.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Fieldtypes/Toggle.php b/src/Fieldtypes/Toggle.php index e100fd3f5e..5198040ac7 100644 --- a/src/Fieldtypes/Toggle.php +++ b/src/Fieldtypes/Toggle.php @@ -24,6 +24,12 @@ protected function configFieldItems(): array 'type' => 'text', 'default' => '', ], + 'inline_label_when_true' => [ + 'display' => __('Inline Label when True'), + 'instructions' => __('statamic::fieldtypes.toggle.config.inline_label_when_true'), + 'type' => 'text', + 'default' => '', + ], 'default' => [ 'display' => __('Default Value'), 'instructions' => __('statamic::messages.fields_default_instructions'),