This class handles toggle commands.

 Methods

{@inheritDoc}

process() 
SuppressWarnings (PHPMD.ExitExpression)
SuppressWarnings (PHPMD.Superglobals)
SuppressWarnings (PHPMD.CamelCaseVariableName)

Determine the new state from the input data.

determineNewState(bool $isInverse) : string

Parameters

$isInverse

bool

Flag if the state shall be evaluated as inverse toggler.

Returns

string

Retrieve the model id from the input provider and validate it.

getModelId() : \ContaoCommunityAlliance\DcGeneral\Data\ModelId | null