helper = $helper; $this->formIds = $formIds; } /** * @inheritdoc */ public function getSectionData() :array { $data = []; foreach ($this->formIds as $formId) { $captchaModel = $this->helper->getCaptcha($formId); $data[$formId] = [ 'isRequired' => $captchaModel->isRequired(), 'timestamp' => time() ]; } return $data; } }