Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. XmlEncoderContextBuilder.php

function XmlEncoderContextBuilder::withStandalone

Configures whether the document will be standalone.

See also

https://php.net/manual/en/class.domdocument.php#domdocument.props.xmlst…

File

vendor/symfony/serializer/Context/Encoder/XmlEncoderContextBuilder.php, line 125

Class

XmlEncoderContextBuilder
A helper providing autocompletion for available XmlEncoder options.

Namespace

Symfony\Component\Serializer\Context\Encoder

Code

public function withStandalone(?bool $standalone) : static {
    return $this->with(XmlEncoder::STANDALONE, $standalone);
}
RSS feed
Powered by Drupal