add getter for inLanguage in base event transformer
This commit is contained in:
parent
0313a8eaea
commit
0a6eb71084
1 changed files with 9 additions and 0 deletions
|
@ -78,6 +78,15 @@ class Event extends Post {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the locale of the event.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function get_in_language() {
|
||||||
|
return $this->get_locale();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generic function that converts an WP-Event object to an ActivityPub-Event object.
|
* Generic function that converts an WP-Event object to an ActivityPub-Event object.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue