public function getName() { if ($this->widget) { if ($this->widget->getAttributes(['name'])) { return (string) $this->widget->name; } } return ''; }