Skip to content

Helper Functions ​

Introduction ​

Fluent Community provides a comprehensive Helper class with utility functions that make it easier to work with the plugin. These helper functions cover common tasks like portal configuration, user management, space operations, media handling, and more.

TIP

The Helper class is located at FluentCommunity\App\Functions\Utility::class and provides static methods that can be called from anywhere in your code.

Accessing the Helper Class ​

You can access the Helper class methods using the following syntax:

php
use FluentCommunity\App\Functions\Utility;

// Example: Get the portal slug
$portalSlug = Utility::getPortalSlug();

// Example: Check if user is site admin
$isAdmin = Utility::isSiteAdmin($userId);

Available Helper Methods ​

The Helper class provides the following categories of utility functions:

Portal Configuration ​

User & Profile Management ​

Space Management ​

Media Handling ​

Security & Utilities ​

Next Steps ​

Fluent Community developer documentation