Documentation

lgmsDatabasesController extends ControllerBase
in package

Handles the display of databases within the LGMS module.

This controller is responsible for rendering a list of database entries as defined in a View. It includes functionality for displaying the list, showing a message when no entries are present, and adding contextual links for users with appropriate permissions.

Table of Contents

Methods

databases()  : array<string|int, mixed>
Renders the databases overview page.

Methods

databases()

Renders the databases overview page.

public databases() : array<string|int, mixed>

Prepares and returns a render array for displaying the databases. It attempts to load and render a View named 'lgms_databases'. If the View has no results, a message indicating the absence of database entries is displayed. Additionally, a search bar and contextual links for editing the View are included for users with the necessary permissions.

Return values
array<string|int, mixed>

A Drupal render array containing the databases page content. This includes the databases list view, a search bar, and possibly a message indicating no database entries are available.


        
On this page

Search results