public function getFieldLayouts(&$context)
    {
        $context['fieldLayouts'] = [];

        foreach ($context['fields'] as $field) {

            $layouts = [];
            foreach ($this->_getRelatedLayoutIds($field) as $row) {
                $layouts[] = $this->_getLayoutData($row);
            }

            $context['fieldLayouts'][] = [
                'field'   => $field,
                'layouts' => $layouts,
            ];
        }
    }