code: public function getRequiredParams()
      {
          $requiredParams = parent::getRequiredParams();
          $modelClass = $this->modelClass;
          $objectType = (new $modelClass())->objectType;
          if (empty($objectType)) {
              throw new InvalidParamException($modelClass . ' does not have a corresponding object type');
          }
          if (!$objectType->hasDashboard) {
              $requiredParams[] = 'parentObject';
          }
  
          return $requiredParams;
      }
docs: Get required params.
  
  @throws InvalidParamException [[@doctodo exception_description:InvalidParamException]]
  @return [[@doctodo return_type:getRequiredParams]] [[@doctodo return_description:getRequiredParams]]