protected function _getActivityData(KDatabaseRowAbstract $row, $status, KCommandContext $context) { $clone = clone $row; // Use container:path as row identifier. $clone->id = $row->container->slug . ':' . $row->path; $data = parent::_getActivityData($clone, $status, $context); $data['metadata'] = array('image' => $row->isImage(), 'width' => $row->width, 'height' => $row->height, 'size' => $row->size, 'name' => $row->name, 'folder' => $row->folder, 'path' => $row->path, 'container' => array('id' => $row->container->id, 'slug' => $row->container->slug, 'title' => $row->container->title)); return $data; }