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