class TranslationHandler extends AbstractHandler (View source)

Handle operations with translations entities.

Properties

protected ObjectManager $objectManager from AbstractHandler

Methods

ObjectManager
getObjectManager()

No description

setObjectManager(ObjectManager $objectManager)

No description

__construct(ObjectManager $objectManager)

AbstractHandler constructor.

int
cleanPositions(bool $setPositions = true)

Clean positions for current entity siblings.

getTranslation()

No description

$this
setTranslation(Translation $translation)

No description

$this
makeDefault()

Set current translation as default one.

Details

ObjectManager getObjectManager()

Return Value

ObjectManager

AbstractHandler setObjectManager(ObjectManager $objectManager)

Parameters

ObjectManager $objectManager

Return Value

AbstractHandler

__construct(ObjectManager $objectManager)

AbstractHandler constructor.

Parameters

ObjectManager $objectManager

int cleanPositions(bool $setPositions = true)

Clean positions for current entity siblings.

Parameters

bool $setPositions

Return Value

int Return the next position after the last entity

Translation getTranslation()

Return Value

Translation

$this setTranslation(Translation $translation)

Parameters

Translation $translation

Return Value

$this

$this makeDefault()

Set current translation as default one.

Return Value

$this