You are here

public function MenuTreeParameters::unserialize in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Menu/MenuTreeParameters.php \Drupal\Core\Menu\MenuTreeParameters::unserialize()

File

core/lib/Drupal/Core/Menu/MenuTreeParameters.php, line 238

Class

MenuTreeParameters
Provides a value object to model menu tree parameters.

Namespace

Drupal\Core\Menu

Code

public function unserialize($serialized) {
  foreach (unserialize($serialized) as $key => $value) {
    $this->{$key} = $value;
  }
  return $this;
}