<p><code>$event-&gt;params['content]</code> will return a <a href="https://craftcms.com/classreference/models/ContentModel" rel="nofollow noreferrer">ContentModel</a> object.</p>

<p>You can either access specific fields directly, like you found, or loop through them all with <code>-&gt;getAttributes()</code> grabbing the ones you want to save externally.</p>

CC BY-SA 3.0
2017-03-23T21:27:41.200Z
2017-03-23T21:27:41.200Z
Brad Bell
<p>I hooked up into the <code>content.saveContent</code> event. I want to save the entry content into a different application. Is there a way to retrieve the content as a Json (Or something more friendly). I think do <code>$event-&gt;params['content']-&gt;title</code> is now the best option.</p>

<plugin-development><events>
Get saved content of entry
# Get saved content of entry

(Asked by: username_0 on 2017-03-23)

I hooked up into the `content.saveContent` event. I want to save the entry content into a different application. Is there a way to retrieve the content as a Json (Or something more friendly). I think do `$event->params['content']->title` is now the best option.

**Tags:** plugin-development, events


---

## 1 answers

### Answer by username_1 on 2017-03-23. Score: 0 | Accepted answer

`$event->params['content]` will return a [ContentModel](https://craftcms.com/classreference/models/ContentModel) object.

You can either access specific fields directly, like you found, or loop through them all with `->getAttributes()` grabbing the ones you want to save externally.


---

