/** * The Config Class. * * @var Config * @since 3.2.0 */ protected Config $config; /** * The Language Class. * * @var Language * @since 3.2.0 */ protected Language $language; /** * The FieldGroupControl Class. * * @var FieldGroupControl * @since 3.2.0 */ protected FieldGroupControl $fieldgroupcontrol; /** * The ConfigFieldsets Class. * * @var ConfigFieldsets * @since 3.2.0 */ protected ConfigFieldsets $configfieldsets; /** * The ExtensionsParams Class. * * @var ExtensionsParams * @since 3.2.0 */ protected ExtensionsParams $extensionsparams; /** * The ConfigFieldsetsCustomfield Class. * * @var Customfield * @since 3.2.0 */ protected Customfield $customfield; /** * Constructor. * * @param Config $config The Config Class. * @param Language $language The Language Class. * @param FieldGroupControl $fieldgroupcontrol The FieldGroupControl Class. * @param ConfigFieldsets $configfieldsets The ConfigFieldsets Class. * @param ExtensionsParams $extensionsparams The ExtensionsParams Class. * @param Customfield $customfield The ConfigFieldsetsCustomfield Class. * * @since 3.2.0 */ public function __construct(Config $config, Language $language, FieldGroupControl $fieldgroupcontrol, ConfigFieldsets $configfieldsets, ExtensionsParams $extensionsparams, Customfield $customfield) { $this->config = $config; $this->language = $language; $this->fieldgroupcontrol = $fieldgroupcontrol; $this->configfieldsets = $configfieldsets; $this->extensionsparams = $extensionsparams; $this->customfield = $customfield; } /** * Set Group Control Config Fieldsets * * @param string $lang * * @since 1.0 */ public function set(string $lang): void { // start loading Group control params if needed if ($this->fieldgroupcontrol->isActive()) { // start building field set for config $this->configfieldsets->add('component', Indent::_(1) . "
"); } }