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

Breadcrumb

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

interface ContextBuilderInterface

Common interface for context builders.

@author Mathias Arlaud <mathias.arlaud@gmail.com> @author Robin Chalas <robin.chalas@gmail.com>

Hierarchy

  • interface \Symfony\Component\Serializer\Context\ContextBuilderInterface

Expanded class hierarchy of ContextBuilderInterface

All classes that implement ContextBuilderInterface

13 files declare their use of ContextBuilderInterface
AbstractNormalizerContextBuilder.php in vendor/symfony/serializer/Context/Normalizer/AbstractNormalizerContextBuilder.php
BackedEnumNormalizerContextBuilder.php in vendor/symfony/serializer/Context/Normalizer/BackedEnumNormalizerContextBuilder.php
ConstraintViolationListNormalizerContextBuilder.php in vendor/symfony/serializer/Context/Normalizer/ConstraintViolationListNormalizerContextBuilder.php
CsvEncoderContextBuilder.php in vendor/symfony/serializer/Context/Encoder/CsvEncoderContextBuilder.php
DateIntervalNormalizerContextBuilder.php in vendor/symfony/serializer/Context/Normalizer/DateIntervalNormalizerContextBuilder.php

... See full list

File

vendor/symfony/serializer/Context/ContextBuilderInterface.php, line 20

Namespace

Symfony\Component\Serializer\Context
View source
interface ContextBuilderInterface {
    
    /**
     * @param self|array<string, mixed> $context
     */
    public function withContext(self|array $context) : static;
    
    /**
     * @return array<string, mixed>
     */
    public function toArray() : array;

}

Members

Title Sort descending Modifiers Object type Summary
ContextBuilderInterface::toArray public function
ContextBuilderInterface::withContext public function

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal