public function get_categories() { if ($this->_is_pojo_widget()) { $category = 'pojo'; } else { $category = 'wordpress'; } return [$category]; }