code: public function canLink($relationshipRole, $object)
      {
          $objectModule = $object->objectType;
          if (!$objectModule
              || ($relationshipRole === 'parent' && ($this->child->uniparental || $this->isHasOne()))
          ) {
              return false;
          }
  
          if (!$object->can('associate:' . $this->companionRoleType($relationshipRole)->systemId)) {
              return false;
          }
  
          return true;
      }
docs: [[@doctodo method_description:canLink]].
  
  @param [[@doctodo param_type:relationshipRole]] $relationshipRole [[@doctodo param_description:relationshipRole]]
  @param [[@doctodo param_type:object]]           $object           [[@doctodo param_description:object]]
  
  @return [[@doctodo return_type:canLink]] [[@doctodo return_description:canLink]]