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

Breadcrumb

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

function AttributeBag::replace

Overrides AttributeBagInterface::replace

File

vendor/symfony/http-foundation/Session/Attribute/AttributeBag.php, line 73

Class

AttributeBag
This class relates to session attribute storage.

Namespace

Symfony\Component\HttpFoundation\Session\Attribute

Code

public function replace(array $attributes) : void {
    $this->attributes = [];
    foreach ($attributes as $key => $value) {
        $this->set($key, $value);
    }
}

API Navigation

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