public CompiledRoute::getNumParts()
Returns the number of parts in this route's path.
The string "foo/bar/baz" has 3 parts, regardless of how many of them are placeholders.
int The number of parts in the path.
public function getNumParts() { return $this->numParts; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Routing!CompiledRoute.php/function/CompiledRoute::getNumParts/8.1.x