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

Breadcrumb

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

function ContentPreprocess::create

Overrides ContainerInjectionInterface::create

File

core/modules/content_moderation/src/ContentPreprocess.php, line 37

Class

ContentPreprocess
Determines whether a route is the "Latest version" tab of a node.

Namespace

Drupal\content_moderation

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('current_route_match'));
}

API Navigation

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