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

Breadcrumb

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

72 calls to ContextBuilderTrait::with()

AbstractNormalizerContextBuilder::withAllowExtraAttributes in vendor/symfony/serializer/Context/Normalizer/AbstractNormalizerContextBuilder.php
If AbstractNormalizer::ATTRIBUTES are specified, and the source has fields that are not part of that list, configures whether to ignore those attributes or throw an ExtraAttributesException.
AbstractNormalizerContextBuilder::withAttributes in vendor/symfony/serializer/Context/Normalizer/AbstractNormalizerContextBuilder.php
Configures attributes to (de)normalize.
AbstractNormalizerContextBuilder::withCallbacks in vendor/symfony/serializer/Context/Normalizer/AbstractNormalizerContextBuilder.php
Configures an hashmap of field name => callable to normalize this field.
AbstractNormalizerContextBuilder::withCircularReferenceHandler in vendor/symfony/serializer/Context/Normalizer/AbstractNormalizerContextBuilder.php
Configures an handler to call when a circular reference has been detected.
AbstractNormalizerContextBuilder::withCircularReferenceLimit in vendor/symfony/serializer/Context/Normalizer/AbstractNormalizerContextBuilder.php
Configures how many loops of circular reference to allow while normalizing.
AbstractNormalizerContextBuilder::withDefaultConstructorArguments in vendor/symfony/serializer/Context/Normalizer/AbstractNormalizerContextBuilder.php
Configures a hashmap of classes containing hashmaps of constructor argument => default value.
AbstractNormalizerContextBuilder::withGroups in vendor/symfony/serializer/Context/Normalizer/AbstractNormalizerContextBuilder.php
Configures groups containing attributes to (de)normalize.
AbstractNormalizerContextBuilder::withIgnoredAttributes in vendor/symfony/serializer/Context/Normalizer/AbstractNormalizerContextBuilder.php
Configures attributes to be skipped when normalizing an object tree.
AbstractNormalizerContextBuilder::withObjectToPopulate in vendor/symfony/serializer/Context/Normalizer/AbstractNormalizerContextBuilder.php
Configures an object to be updated instead of creating a new instance.
AbstractNormalizerContextBuilder::withRequireAllProperties in vendor/symfony/serializer/Context/Normalizer/AbstractNormalizerContextBuilder.php
Configures requiring all properties to be listed in the input instead of falling back to null for nullable ones.
AbstractObjectNormalizerContextBuilder::withDeepObjectToPopulate in vendor/symfony/serializer/Context/Normalizer/AbstractObjectNormalizerContextBuilder.php
Configures whether to tell the denormalizer to also populate existing objects on attributes of the main object.
AbstractObjectNormalizerContextBuilder::withDepthKeyPattern in vendor/symfony/serializer/Context/Normalizer/AbstractObjectNormalizerContextBuilder.php
Configures a pattern to keep track of the current depth.
AbstractObjectNormalizerContextBuilder::withDisableTypeEnforcement in vendor/symfony/serializer/Context/Normalizer/AbstractObjectNormalizerContextBuilder.php
Configures whether verifying types match during denormalization.
AbstractObjectNormalizerContextBuilder::withEnableMaxDepth in vendor/symfony/serializer/Context/Normalizer/AbstractObjectNormalizerContextBuilder.php
Configures whether to respect the max depth metadata on fields.
AbstractObjectNormalizerContextBuilder::withExcludeFromCacheKeys in vendor/symfony/serializer/Context/Normalizer/AbstractObjectNormalizerContextBuilder.php
Configures which context key are not relevant to determine which attributes of an object to (de)normalize.
AbstractObjectNormalizerContextBuilder::withMaxDepthHandler in vendor/symfony/serializer/Context/Normalizer/AbstractObjectNormalizerContextBuilder.php
Configures a callback to allow to set a value for an attribute when the max depth has been reached.
AbstractObjectNormalizerContextBuilder::withPreserveEmptyObjects in vendor/symfony/serializer/Context/Normalizer/AbstractObjectNormalizerContextBuilder.php
Configures whether an empty object should be kept as an object (in JSON: {}) or converted to a list (in JSON: []).
AbstractObjectNormalizerContextBuilder::withSkipNullValues in vendor/symfony/serializer/Context/Normalizer/AbstractObjectNormalizerContextBuilder.php
Configures whether fields with the value `null` should be output during normalization.
AbstractObjectNormalizerContextBuilder::withSkipUninitializedValues in vendor/symfony/serializer/Context/Normalizer/AbstractObjectNormalizerContextBuilder.php
Configures whether uninitialized typed class properties should be excluded during normalization.
BackedEnumNormalizerContextBuilder::withAllowInvalidValues in vendor/symfony/serializer/Context/Normalizer/BackedEnumNormalizerContextBuilder.php
Configures if invalid values are allowed in denormalization. They will be denormalized into `null` values.
ConstraintViolationListNormalizerContextBuilder::withInstance in vendor/symfony/serializer/Context/Normalizer/ConstraintViolationListNormalizerContextBuilder.php
Configure the instance field of normalized data.
ConstraintViolationListNormalizerContextBuilder::withPayloadFields in vendor/symfony/serializer/Context/Normalizer/ConstraintViolationListNormalizerContextBuilder.php
Configures the payload fields which will act as an allowlist for the payload field of normalized data.
ConstraintViolationListNormalizerContextBuilder::withStatus in vendor/symfony/serializer/Context/Normalizer/ConstraintViolationListNormalizerContextBuilder.php
Configure the status field of normalized data.
ConstraintViolationListNormalizerContextBuilder::withTitle in vendor/symfony/serializer/Context/Normalizer/ConstraintViolationListNormalizerContextBuilder.php
Configure the title field of normalized data.
ConstraintViolationListNormalizerContextBuilder::withType in vendor/symfony/serializer/Context/Normalizer/ConstraintViolationListNormalizerContextBuilder.php
Configure the type field of normalized data.
CsvEncoderContextBuilder::withAsCollection in vendor/symfony/serializer/Context/Encoder/CsvEncoderContextBuilder.php
Configures whether the decoded result should be considered as a collection or as a single element.
CsvEncoderContextBuilder::withDelimiter in vendor/symfony/serializer/Context/Encoder/CsvEncoderContextBuilder.php
Configures the column delimiter character.
CsvEncoderContextBuilder::withEnclosure in vendor/symfony/serializer/Context/Encoder/CsvEncoderContextBuilder.php
Configures the field enclosure character.
CsvEncoderContextBuilder::withEndOfLine in vendor/symfony/serializer/Context/Encoder/CsvEncoderContextBuilder.php
Configures the end of line characters.
CsvEncoderContextBuilder::withEscapeChar in vendor/symfony/serializer/Context/Encoder/CsvEncoderContextBuilder.php
Configures the escape character.
CsvEncoderContextBuilder::withEscapedFormulas in vendor/symfony/serializer/Context/Encoder/CsvEncoderContextBuilder.php
Configures whether formulas should be escaped.
CsvEncoderContextBuilder::withHeaders in vendor/symfony/serializer/Context/Encoder/CsvEncoderContextBuilder.php
Configures the headers.
CsvEncoderContextBuilder::withKeySeparator in vendor/symfony/serializer/Context/Encoder/CsvEncoderContextBuilder.php
Configures the key separator when (un)flattening arrays.
CsvEncoderContextBuilder::withNoHeaders in vendor/symfony/serializer/Context/Encoder/CsvEncoderContextBuilder.php
Configures whether the input (or output) is containing (or will contain) headers.
CsvEncoderContextBuilder::withOutputUtf8Bom in vendor/symfony/serializer/Context/Encoder/CsvEncoderContextBuilder.php
Configures whether to add the UTF-8 Byte Order Mark (BOM) at the beginning of the encoded result or not.
DateIntervalNormalizerContextBuilder::withFormat in vendor/symfony/serializer/Context/Normalizer/DateIntervalNormalizerContextBuilder.php
Configures the format of the interval.
DateTimeNormalizerContextBuilder::withCast in vendor/symfony/serializer/Context/Normalizer/DateTimeNormalizerContextBuilder.php
DateTimeNormalizerContextBuilder::withFormat in vendor/symfony/serializer/Context/Normalizer/DateTimeNormalizerContextBuilder.php
Configures the format of the date.
DateTimeNormalizerContextBuilder::withTimezone in vendor/symfony/serializer/Context/Normalizer/DateTimeNormalizerContextBuilder.php
Configures the timezone of the date.
FormErrorNormalizerContextBuilder::withStatusCode in vendor/symfony/serializer/Context/Normalizer/FormErrorNormalizerContextBuilder.php
Configures the code of the normalized data.
FormErrorNormalizerContextBuilder::withTitle in vendor/symfony/serializer/Context/Normalizer/FormErrorNormalizerContextBuilder.php
Configures the title of the normalized data.
FormErrorNormalizerContextBuilder::withType in vendor/symfony/serializer/Context/Normalizer/FormErrorNormalizerContextBuilder.php
Configures the type of the normalized data.
JsonEncoderContextBuilder::withAssociative in vendor/symfony/serializer/Context/Encoder/JsonEncoderContextBuilder.php
Configures whether decoded objects will be given as associative arrays or as nested stdClass.
JsonEncoderContextBuilder::withDecodeOptions in vendor/symfony/serializer/Context/Encoder/JsonEncoderContextBuilder.php
Configures the json_decode flags bitmask.
JsonEncoderContextBuilder::withEncodeOptions in vendor/symfony/serializer/Context/Encoder/JsonEncoderContextBuilder.php
Configures the json_encode flags bitmask.
JsonEncoderContextBuilder::withRecursionDepth in vendor/symfony/serializer/Context/Encoder/JsonEncoderContextBuilder.php
Configures the maximum recursion depth.
ProblemNormalizerContextBuilder::withStatusCode in vendor/symfony/serializer/Context/Normalizer/ProblemNormalizerContextBuilder.php
Configure the status field of normalized data.
ProblemNormalizerContextBuilder::withTitle in vendor/symfony/serializer/Context/Normalizer/ProblemNormalizerContextBuilder.php
Configure the title field of normalized data.
ProblemNormalizerContextBuilder::withType in vendor/symfony/serializer/Context/Normalizer/ProblemNormalizerContextBuilder.php
Configure the type field of normalized data.
PropertyNormalizerContextBuilder::withNormalizeVisibility in vendor/symfony/serializer/Context/Normalizer/PropertyNormalizerContextBuilder.php
Configures whether fields should be output based on visibility.
SerializerContextBuilder::withCollectDenormalizationErrors in vendor/symfony/serializer/Context/SerializerContextBuilder.php
SerializerContextBuilder::withEmptyArrayAsObject in vendor/symfony/serializer/Context/SerializerContextBuilder.php
Configures whether an empty array should be transformed to an object (in JSON: {}) or to a list (in JSON: []).
UidNormalizerContextBuilder::withNormalizationFormat in vendor/symfony/serializer/Context/Normalizer/UidNormalizerContextBuilder.php
Configures the uuid format for normalization.
UnwrappingDenormalizerContextBuilder::withUnwrapPath in vendor/symfony/serializer/Context/Normalizer/UnwrappingDenormalizerContextBuilder.php
Configures the path of wrapped data during denormalization.
XmlEncoderContextBuilder::withAsCollection in vendor/symfony/serializer/Context/Encoder/XmlEncoderContextBuilder.php
Configures whether the decoded result should be considered as a collection or as a single element.
XmlEncoderContextBuilder::withCdataWrapping in vendor/symfony/serializer/Context/Encoder/XmlEncoderContextBuilder.php
Configures whether to wrap strings within CDATA sections.
XmlEncoderContextBuilder::withCdataWrappingPattern in vendor/symfony/serializer/Context/Encoder/XmlEncoderContextBuilder.php
Configures the pattern used to evaluate if a CDATA section should be added.
XmlEncoderContextBuilder::withDecoderIgnoredNodeTypes in vendor/symfony/serializer/Context/Encoder/XmlEncoderContextBuilder.php
Configures node types to ignore while decoding.
XmlEncoderContextBuilder::withEncoderIgnoredNodeTypes in vendor/symfony/serializer/Context/Encoder/XmlEncoderContextBuilder.php
Configures node types to ignore while encoding.
XmlEncoderContextBuilder::withEncoding in vendor/symfony/serializer/Context/Encoder/XmlEncoderContextBuilder.php
Configures the DOMDocument encoding.
XmlEncoderContextBuilder::withFormatOutput in vendor/symfony/serializer/Context/Encoder/XmlEncoderContextBuilder.php
Configures whether to encode with indentation and extra space.
XmlEncoderContextBuilder::withLoadOptions in vendor/symfony/serializer/Context/Encoder/XmlEncoderContextBuilder.php
Configures the DOMDocument::loadXml options bitmask.
XmlEncoderContextBuilder::withRemoveEmptyTags in vendor/symfony/serializer/Context/Encoder/XmlEncoderContextBuilder.php
Configures whether to keep empty nodes.
XmlEncoderContextBuilder::withRootNodeName in vendor/symfony/serializer/Context/Encoder/XmlEncoderContextBuilder.php
Configures name of the root node.
XmlEncoderContextBuilder::withSaveOptions in vendor/symfony/serializer/Context/Encoder/XmlEncoderContextBuilder.php
Configures the DOMDocument::saveXml options bitmask.
XmlEncoderContextBuilder::withStandalone in vendor/symfony/serializer/Context/Encoder/XmlEncoderContextBuilder.php
Configures whether the document will be standalone.
XmlEncoderContextBuilder::withTypeCastAttributes in vendor/symfony/serializer/Context/Encoder/XmlEncoderContextBuilder.php
Configures whether casting numeric string attributes to integers or floats.
XmlEncoderContextBuilder::withVersion in vendor/symfony/serializer/Context/Encoder/XmlEncoderContextBuilder.php
Configures the version number of the document.
YamlEncoderContextBuilder::withFlags in vendor/symfony/serializer/Context/Encoder/YamlEncoderContextBuilder.php
Configures \Symfony\Component\Yaml\Dumper::dump flags bitmask.
YamlEncoderContextBuilder::withIndentLevel in vendor/symfony/serializer/Context/Encoder/YamlEncoderContextBuilder.php
Configures the indentation level.
YamlEncoderContextBuilder::withInlineThreshold in vendor/symfony/serializer/Context/Encoder/YamlEncoderContextBuilder.php
Configures the threshold to switch to inline YAML.
YamlEncoderContextBuilder::withPreservedEmptyObjects in vendor/symfony/serializer/Context/Encoder/YamlEncoderContextBuilder.php
Configures whether to preserve empty objects "{}" or to convert them to null.
RSS feed
Powered by Drupal