setTemplate('/Modules/Profile/Theme/Backend/Components/AccountGroupSelector/base'); $view = new PopupView($l11n, $request, $response); $this->addData('popup', $view); } /** * Is required? * * @return bool * * @since 1.0.0 */ public function isRequired() : bool { return $this->isRequired; } /** * {@inheritdoc} */ public function render(mixed ...$data) : string { /** @var array{0:string, 1:string, 2:null|bool} $data */ $this->id = $data[0]; $this->name = $data[1]; $this->isRequired = $data[2] ?? false; $this->data['popup']->id = $this->id; return parent::render(); } }