add getter for inLanguage in base event transformer

This commit is contained in:
André Menrath 2024-09-06 14:22:18 +02:00
parent 0313a8eaea
commit 0a6eb71084

View file

@ -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.
* *