function NavigationRenderer::meetsContentEntityRoutesCondition

Same name and namespace in other branches
  1. 10 core/modules/navigation/src/NavigationRenderer.php \Drupal\navigation\NavigationRenderer::meetsContentEntityRoutesCondition()

Determines if content entity route condition is met.

Return value

bool TRUE if the content entity route condition is met, FALSE otherwise.

1 call to NavigationRenderer::meetsContentEntityRoutesCondition()
NavigationRenderer::getLocalTasks in core/modules/navigation/src/NavigationRenderer.php
Local tasks list based on user access.

File

core/modules/navigation/src/NavigationRenderer.php, line 298

Class

NavigationRenderer
Handle rendering for different pieces of the navigation.

Namespace

Drupal\navigation

Code

protected function meetsContentEntityRoutesCondition() : 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.