PHP Class Elcodi\Admin\LanguageBundle\Controller\LanguageController

Inheritance: extends Elcodi\Admin\CoreBundle\Controller\Abstracts\AbstractAdminController
Mostrar archivo Open project: elcodi/bamboo

Public Methods

Method Description
disableLanguageAction ( Elcodi\Component\Language\Entity\Interfaces\LanguageInterface $language ) : array Disable entity
enableLanguageAction ( Elcodi\Component\Language\Entity\Interfaces\LanguageInterface $language ) : array Enable entity
listAction ( ) : array List elements of certain entity type.
masterLanguageAction ( Elcodi\Component\Store\Entity\Interfaces\StoreInterface $store, Elcodi\Component\Language\Entity\Interfaces\LanguageInterface $language ) : array Set the master language.

Method Details

disableLanguageAction() public method

Disable entity
public disableLanguageAction ( Elcodi\Component\Language\Entity\Interfaces\LanguageInterface $language ) : array
$language Elcodi\Component\Language\Entity\Interfaces\LanguageInterface The language to disable
return array Result

enableLanguageAction() public method

Enable entity
public enableLanguageAction ( Elcodi\Component\Language\Entity\Interfaces\LanguageInterface $language ) : array
$language Elcodi\Component\Language\Entity\Interfaces\LanguageInterface The language to enable
return array Result

listAction() public method

This action is just a wrapper, so should never get any data, as this is component responsibility
public listAction ( ) : array
return array Result

masterLanguageAction() public method

Set the master language.
public masterLanguageAction ( Elcodi\Component\Store\Entity\Interfaces\StoreInterface $store, Elcodi\Component\Language\Entity\Interfaces\LanguageInterface $language ) : array
$store Elcodi\Component\Store\Entity\Interfaces\StoreInterface
$language Elcodi\Component\Language\Entity\Interfaces\LanguageInterface
return array