l->t('Comments'); } public function getPriority(): int { return 40; } public function getIcon(): string { return $this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/comment.svg')); } /** * @param string[] $types * @return string[] An array of allowed apps from which activities should be displayed */ public function filterTypes(array $types): array { return $types; } /** * @return string[] An array of allowed apps from which activities should be displayed */ public function allowedApps(): array { return ['comments']; } }