public function widgetOptions()
    {
        $options = [
            'obj_type'           => $this->obj()->objType(),
            'obj_id'             => $this->obj()->id(),
            'group'              => $this->group(),
            'attachment_options' => $this->attachmentOptions(),
            'attachable_objects' => $this->attachableObjects(),
            'title'              => $this->title(),
            'lang'               => $this->translator()->getLocale()
        ];

        return json_encode($options, true);
    }
public function widgetOptions()
    {
        $options = [
            'obj_type'           => $this->obj()->objType(),
            'obj_id'             => $this->obj()->id(),
            'group'              => $this->group(),
            'attachment_options' => $this->attachmentOptions(),
            'attachable_objects' => $this->attachableObjects(),
            'title'              => $this->title(),
            'lang'               => $this->translator()->getLocale()
        ];

        return json_encode($options, true);
    }
public function widgetOptions ( ) { $ options = [ 'obj_type' => $ this -> obj ( ) -> objType ( ) , 'obj_id' => $ this -> obj ( ) -> id ( ) , 'group' => $ this -> group ( ) , 'attachment_options' => $ this -> attachmentOptions ( ) , 'attachable_objects' => $ this -> attachableObjects ( ) , 'title' => $ this -> title ( ) , 'lang' => $ this -> translator ( ) -> getLocale ( ) ] ; return json_encode ( $ options , true ) ; }
Retrieve the current widget's options as a JSON object.

@return string A JSON string.
Retrieve the current widget s options as a JSON object .