You are here

public function CompiledRoute::__serialize in Drupal 9

File

core/lib/Drupal/Core/Routing/CompiledRoute.php, line 164

Class

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

Namespace

Drupal\Core\Routing

Code

public function __serialize() : array {

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