private function getStreamActionIds($limit = 4) { $action = new DashboardStream('stream', Yii::$app->controller, ['limit' => $limit]); $wallEntries = $action->getWallEntries(); $wallEntryIds = array_map(create_function('$entry', 'return $entry->id;'), $wallEntries); return $wallEntryIds; }
/** * @inheritdoc */ public function actions() { return ['stream' => ['class' => \humhub\modules\dashboard\components\actions\DashboardStream::className()]]; }