CoolCMS API

InitTrait

Configuration and template preparation of the category suggest box.

The host sets the data source when it creates the component, also for the suggest! signal, where the template is not rendered.

Table of Contents

Properties

$currentLabel  : string
Label of the stored value for the component's own field (without `$display`). The host knows it from the entity, so the component does not call the Api for it.
$provider  : CategorySuggestProviderInterface|null

Methods

setCurrentLabel()  : self
setProvider()  : self
prepareTemplate()  : void
resolveLanguageId()  : int

Properties

$currentLabel

Label of the stored value for the component's own field (without `$display`). The host knows it from the entity, so the component does not call the Api for it.

private string $currentLabel = ''

Methods

setCurrentLabel()

public setCurrentLabel(string $currentLabel) : self
Parameters
$currentLabel : string
Return values
self

prepareTemplate()

private prepareTemplate(BaseControl $input) : void
Parameters
$input : BaseControl

resolveLanguageId()

private resolveLanguageId() : int
Return values
int
On this page

Search results