You are here

public function CompiledRoute::serialize in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/routing/CompiledRoute.php \Symfony\Component\Routing\CompiledRoute::serialize()
  2. 8 core/lib/Drupal/Core/Routing/CompiledRoute.php \Drupal\Core\Routing\CompiledRoute::serialize()
Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Routing/CompiledRoute.php \Drupal\Core\Routing\CompiledRoute::serialize()

Overrides CompiledRoute::serialize

File

core/lib/Drupal/Core/Routing/CompiledRoute.php, line 148
Contains \Drupal\Core\Routing\CompiledRoute.

Class

CompiledRoute
A compiled route contains derived information from a route object.

Namespace

Drupal\Core\Routing

Code

public function serialize() {

  // Calling the parent method is safer than trying to optimize out the extra
  // function calls.
  $data = unserialize(parent::serialize());
  $data['fit'] = $this->fit;
  $data['patternOutline'] = $this->patternOutline;
  $data['numParts'] = $this->numParts;
  return serialize($data);
}