src/Builder.php
public function email(
        string $id,
        string $title,
        array $additionalArguments = null
    ): Field {
        $formControl = $this->builder->email($id)
                                     ->addClass('regular-text')
                                     ->value(
                                         $this->optionStore->getString($id)
                                     );

        $additionalArguments = array_merge(
            [
                'sanitize_callback' => 'sanitize_email',
            ],
            (array) $additionalArguments
        );

        return new Field(
            $id,
            $title,
            $formControl,
            (array) $additionalArguments
        );
    }
public function email(
        string $id,
        string $title,
        array $additionalArguments = null
    ): Field {
        $formControl = $this->builder->email($id)
                                     ->addClass('regular-text')
                                     ->value(
                                         $this->optionStore->getString($id)
                                     );

        $additionalArguments = array_merge(
            [
                'sanitize_callback' => 'sanitize_email',
            ],
            (array) $additionalArguments
        );

        return new Field(
            $id,
            $title,
            $formControl,
            (array) $additionalArguments
        );
    }
Build an email field.

@param string $id                  String for use in the 'id' attribute of tags.
@param string $title               Title of the field.
@param array  $additionalArguments Optional. Additional arguments that are passed to `register_setting` and
`add_settings_field`.

@return Field