code: public function canDeleteObject()
      {
          if ($this->object->objectType->hasDashboard && isset($this->relationship) && !$this->relationship->isHasOne()) {
              return false;
          }
  
          return $this->object->can('delete');
      }
docs: [[@doctodo method_description:canDeleteObject]].
  
  @return [[@doctodo return_type:canDeleteObject]] [[@doctodo return_description:canDeleteObject]]