diff options
Diffstat (limited to 'engine/lib/extender.php')
-rw-r--r-- | engine/lib/extender.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/engine/lib/extender.php b/engine/lib/extender.php index 49db9702a..c2d4bcc96 100644 --- a/engine/lib/extender.php +++ b/engine/lib/extender.php @@ -82,6 +82,15 @@ { return get_user($this->owner_guid); } +
+ /**
+ * Returns the entity this is attached to
+ *
+ * @return ElggEntity The enttiy
+ */
+ public function getEntity() {
+ return get_entity($this->entity_guid);
+ }
/** * Save this data to the appropriate database table. |