function CompiledRoute::serialize
File
-
core/
lib/ Drupal/ Core/ Routing/ CompiledRoute.php, line 146
Class
- CompiledRoute
- A compiled route contains derived information from a route object.
Namespace
Drupal\Core\RoutingCode
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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.