KMP PHP API Reference

ActivitiesNavigationProvider
in package

Provides navigation items for the Activities plugin.

Generates navigation structure for activity configuration, management, and reporting. Approval queue navigation is handled by the core unified approvals system.

Tags
see
StaticHelpers

Plugin management utilities

Member

User entity for permission context

Table of Contents

Methods

getNavigationItems()  : array<string|int, mixed>
Build the Activities plugin navigation structure with dynamic badges and permission-aware visibility.

Methods

getNavigationItems()

Build the Activities plugin navigation structure with dynamic badges and permission-aware visibility.

public static getNavigationItems(Member $user[, array<string|int, mixed> $params = [] ]) : array<string|int, mixed>

When the Activities plugin is disabled this returns an empty array. Otherwise it returns an array of associative navigation item definitions (labels, urls, icons, order, optional badge configuration and active path hints) suitable for rendering the Activities menu.

Parameters
$user : Member

The current authenticated member used for personalization and badge calculations.

$params : array<string|int, mixed> = []

Optional context parameters (currently unused).

Return values
array<string|int, mixed>

An array of navigation item definitions for the Activities plugin.

On this page

Search results