Apple_Exporter\Components\Image::group_component PHP Method

group_component() private method

Let's instead, return the JSON as a Container instead of an Image.
private group_component ( string $caption )
$caption string
    private function group_component($caption)
    {
        $image_component = $this->json;
        $this->json = array('role' => 'container', 'components' => array($image_component, array('role' => 'caption', 'text' => $caption, 'textStyle' => array('textAlignment' => $this->find_caption_alignment(), 'fontSize' => intval($this->get_setting('body_size') - 2), 'fontName' => $this->get_setting('body_font')), 'layout' => array('margin' => array('top' => 20)))));
    }