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

Breadcrumb

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

class IdentityMarshaller

@author Ahmed TAILOULOUTE <ahmed.tailouloute@gmail.com>

Hierarchy

  • class \Symfony\Component\HttpFoundation\Session\Storage\Handler\IdentityMarshaller implements \Symfony\Component\Cache\Marshaller\MarshallerInterface

Expanded class hierarchy of IdentityMarshaller

File

vendor/symfony/http-foundation/Session/Storage/Handler/IdentityMarshaller.php, line 19

Namespace

Symfony\Component\HttpFoundation\Session\Storage\Handler
View source
class IdentityMarshaller implements MarshallerInterface {
    public function marshall(array $values, ?array &$failed) : array {
        foreach ($values as $key => $value) {
            if (!\is_string($value)) {
                throw new \LogicException(\sprintf('%s accepts only string as data.', __METHOD__));
            }
        }
        return $values;
    }
    public function unmarshall(string $value) : string {
        return $value;
    }

}

Members

Title Sort descending Modifiers Object type Summary
IdentityMarshaller::marshall public function
IdentityMarshaller::unmarshall public function

API Navigation

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