getEntityType(); if (!$this->acl->checkScope($entityType, Table::ACTION_EDIT)) { throw new Forbidden(); } $sourceIdList = $data->get('sourceIdList'); $attributes = $data->get('attributes'); if (!is_array($sourceIdList)) { throw new BadRequest("No 'sourceIdList'."); } if (!$attributes instanceof stdClass) { throw new BadRequest("No 'attributes'."); } $this->merger->process($params, $sourceIdList, $attributes); } }