src/Gzero/Api/Transformer/LangTransformer.php
public function transform($lang)
    {
        $lang = $this->entityToArray(Lang::class, $lang);
        return [
            'code'      => $lang['code'],
            'i18n'      => $lang['i18n'],
            'isEnabled' => (bool) $lang['is_enabled'],
            'isDefault' => (bool) $lang['is_default'],
        ];
    }
public function transform($lang)
    {
        $lang = $this->entityToArray(Lang::class, $lang);
        return [
            'code'      => $lang['code'],
            'i18n'      => $lang['i18n'],
            'isEnabled' => (bool) $lang['is_enabled'],
            'isDefault' => (bool) $lang['is_default'],
        ];
    }
public function transform ( $ lang ) { $ lang = $ this -> entityToArray ( Lang :: class , $ lang ) ; return [ 'code' => $ lang [ 'code' ] , 'i18n' => $ lang [ 'i18n' ] , 'isEnabled' => ( bool ) $ lang [ 'is_enabled' ] , 'isDefault' => ( bool ) $ lang [ 'is_default' ] , ] ; }
Transforms lang entity

@param Lang|array $lang Lang entity

@return array
Transforms lang entity