Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. NavigationRenderer.php

function 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 323

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());
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal