public function translationData($lang)
    {
        $translation = $this->translation($lang);

        if ($translation) {
            $data = json_decode($translation->entity_data);

            if (isset($data->blocks)) {
                $data->blocks = json_decode($data->blocks, true);
            }

            return $data;
        }

        return null;
    }
public function translationData($lang)
    {
        $translation = $this->translation($lang);

        if ($translation) {
            $data = json_decode($translation->entity_data);

            if (isset($data->blocks)) {
                $data->blocks = json_decode($data->blocks, true);
            }

            return $data;
        }

        return null;
    }
public function translationData ( $ lang ) { $ translation = $ this -> translation ( $ lang ) ; if ( $ translation ) { $ data = json_decode ( $ translation -> entity_data ) ; if ( isset ( $ data -> blocks ) ) { $ data -> blocks = json_decode ( $ data -> blocks , true ) ; } return $ data ; } return null ; }
Get translation data.

@param string $lang

@return array|null
Get translation data .