function EntityRouteHelper::isContentEntityRoute
Determines if content entity route condition is met.
Return value
bool TRUE if the content entity route condition is met, FALSE otherwise.
File
-
core/
modules/ navigation/ src/ EntityRouteHelper.php, line 53
Class
- EntityRouteHelper
- Helper service to detect entity routes.
Namespace
Drupal\navigationCode
public function isContentEntityRoute() : bool {
return array_key_exists($this->routeMatch
->getRouteObject()
->getPath(), $this->getContentEntityPaths());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.