/** * Process the Object create processor * {@inheritDoc} * @return mixed */ public function process() { $objectArray = $this->object->toArray(); $recordings = $this->modx->bbbx->getRecordings($objectArray['meeting_id']); if (!empty($recordings)) { foreach ($recordings as $recording) { if (!$this->modx->bbbx->deleteRecordings($recording['recordID'])) { return $this->failure($this->modx->bbbx->getError()); } } } return parent::process(); }