KMP PHP API Reference

AwardsViewCellProvider
in package

Provides view cell integration for the Awards plugin.

Manages view cell registration for member profiles, gathering activities, and gathering views with route-based visibility and permission checking.

Tags
see
ViewCellRegistry

Centralized view cell management

see
MemberSubmittedRecsCell

Member submitted recommendations

see
RecsForMemberCell

Member received recommendations

see

/docs/5.2.17-awards-services.md Full documentation

Table of Contents

Methods

getViewCells()  : array<string|int, mixed>
Build view cell configurations for the Awards plugin based on request context and user permissions.

Methods

getViewCells()

Build view cell configurations for the Awards plugin based on request context and user permissions.

public static getViewCells(array<string|int, mixed> $urlParams[, mixed $user = null ]) : array<string|int, mixed>

Generates an array of ViewCellRegistry-compatible configuration arrays for integration points such as member profile tabs and gathering activity views. Configurations are included only when the Awards plugin is enabled, the request context (controller/action/route parameters) matches a supported integration, and the current user has the required permission or relationship to view the underlying data.

Parameters
$urlParams : array<string|int, mixed>

Request URL parameters used to determine controller, action, and route context.

$user : mixed = null

Current authenticated user used for permission and relationship checks.

Return values
array<string|int, mixed>

An array of view cell configuration arrays ready for registration with ViewCellRegistry.


        
On this page

Search results