Elgg  Version master
Public Member Functions | Protected Attributes | List of all members
Elgg\Forms\FieldsService Class Reference

Service for getting field definitions for type/subtype combinations. More...

Public Member Functions

 __construct (protected EventsService $events, protected Translator $translator)
 Constructor. More...
 
 get (string $type, string $subtype)
 Returns an array of fields for a give type/subtype combination. More...
 

Protected Attributes

array $fields = []
 

Detailed Description

Service for getting field definitions for type/subtype combinations.

Since
4.0

Definition at line 14 of file FieldsService.php.

Constructor & Destructor Documentation

Elgg\Forms\FieldsService::__construct ( protected EventsService  $events,
protected Translator  $translator 
)

Constructor.

Parameters
EventsService$eventsevents service
Translator$translatortranslator service

Definition at line 26 of file FieldsService.php.

Member Function Documentation

Elgg\Forms\FieldsService::get ( string  $type,
string  $subtype 
)

Returns an array of fields for a give type/subtype combination.

Parameters
string$typetype of the entity to get fields for
string$subtypesubtype of the entity to get fields for
Returns
array

Definition at line 37 of file FieldsService.php.

Member Data Documentation

array Elgg\Forms\FieldsService::$fields = []
protected

Definition at line 18 of file FieldsService.php.


The documentation for this class was generated from the following file: