From 0a6eb7108447bcc796e64ec5fa3ed0b00de4680e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Fri, 6 Sep 2024 14:22:18 +0200 Subject: [PATCH] add getter for inLanguage in base event transformer --- includes/activitypub/transformer/class-event.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/includes/activitypub/transformer/class-event.php b/includes/activitypub/transformer/class-event.php index c7b508f..5527c64 100644 --- a/includes/activitypub/transformer/class-event.php +++ b/includes/activitypub/transformer/class-event.php @@ -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. *