src/Action/Responses/Image.php
public function renderRichResponseItem()
    {
        $out = [];
        $basicCard = [];

        if ($this->imageUrl) {
            $basicCard['image'] = [
                'url'               => $this->imageUrl,
                'accessibilityText' => ($this->accessibilityText) ? $this->accessibilityText : 'accessibility text',
            ];
        }

        $out['basicCard'] = $basicCard;

        return $out;
    }
public function renderRichResponseItem()
    {
        $out = [];
        $basicCard = [];

        if ($this->imageUrl) {
            $basicCard['image'] = [
                'url'               => $this->imageUrl,
                'accessibilityText' => ($this->accessibilityText) ? $this->accessibilityText : 'accessibility text',
            ];
        }

        $out['basicCard'] = $basicCard;

        return $out;
    }
public function renderRichResponseItem ( ) { $ out = [ ] ; $ basicCard = [ ] ; if ( $ this -> imageUrl ) { $ basicCard [ 'image' ] = [ 'url' => $ this -> imageUrl , 'accessibilityText' => ( $ this -> accessibilityText ) ? $ this -> accessibilityText : 'accessibility text' , ] ; } $ out [ 'basicCard' ] = $ basicCard ; return $ out ; }
Render a single Rich Response item as array.

@return null|array
Render a single Rich Response item as array .