', '' ); } /** * {@inheritdoc} */ public function get_available_values( array $settings ) { return null; } /** * {@inheritdoc} */ public function get_default_value( array $settings = null ): string { return 'yes'; } /** * {@inheritdoc} */ public function validate_value( $current_value, array $available_values = null, array $disabled_values = null ): string { return ( $current_value === 'yes' ) ? 'yes' : ''; } /** * {@inheritdoc} */ public function sanitize_value( $current_value ): string { return $this->validate_value( $current_value ); } }