$settings Settings. * @param array $form Form. * @param array|null $entry Entry. * @param string $context Context. * @return Event|null */ public function resolve( array $settings, array $form, ?array $entry, string $context ): ?Event { if ( 'fixed' !== ( $settings['event_source'] ?? 'fixed' ) ) { return null; } return ( new EventFactory() )->create( $settings, (int) $form['id'], sanitize_text_field( $form['title'] ?? '' ), wp_timezone_string(), home_url( '/' ) ); } }