<p>From the docs: <a href="http://buildwithcraft.com/docs/plugins/hooks-and-events#listening-for-events" rel="nofollow">http://buildwithcraft.com/docs/plugins/hooks-and-events#listening-for-events</a></p>

<p>The <a href="http://buildwithcraft.com/classreference/models/EntryModel" rel="nofollow">entry</a> will be in the <code>params</code> property of the <code>$event</code>.  You can access it like so:</p>

<pre><code>$event-&gt;params['entry']
</code></pre>

CC BY-SA 3.0
2014-10-10T22:01:34.210Z
2014-10-10T22:01:34.210Z
Brad Bell
<p>I am trying to fetch the content from an event <code>onEntrySave</code> but I don't know how to access the entry's properties from the event. So far I have got the event handler working I would just like to fetch the data, any ideas? </p>

<plugin-development><plugins><entry><events>
How to fetch the data from Event
# How to fetch the data from Event

(Asked by: username_0 on 2014-10-10)

I am trying to fetch the content from an event `onEntrySave` but I don't know how to access the entry's properties from the event. So far I have got the event handler working I would just like to fetch the data, any ideas?

**Tags:** plugin-development, plugins, entry, events

---

## 1 answers

### Answer by username_1 on 2014-10-10. Score: 1

From the docs: http://buildwithcraft.com/docs/plugins/hooks-and-events#listening-for-events
The entry will be in the params property of the $event.  You can access it like so:
$event->params['entry']


---

