base && static::get_post_type() === $screen->post_type; $is_event_plugins_settings_page = in_array( $screen->id, static::get_settings_pages(), true ); return $is_event_plugins_edit_page || $is_event_plugins_settings_page; } /** * Returns the Activitypub transformer for the event plugins event post type. */ public static function get_activitypub_event_transformer_class(): string { return str_replace( 'Integrations', 'Activitypub\Transformer', static::class ); } /** * Returns the class used for transmogrifying an Event (ActivityStreams to Event plugin transformation). */ public static function get_transmogrifier_class(): ?string { if ( ! static::supports_event_sources() ) { return null; } return str_replace( 'Integrations', 'Activitypub\Transmogrifier', static::class ); } }