code: public function setRibbonXMLData($target, $xmlData)
      {
          if ($target !== null && $xmlData !== null) {
              $this->ribbonXMLData = ['target' => $target, 'data' => $xmlData];
          } else {
              $this->ribbonXMLData = null;
          }
      }
docs: set ribbon XML data.
  
  @param null|mixed $target
  @param null|mixed $xmlData