function ContentPreprocess::create
Same name in other branches
- 9 core/modules/content_moderation/src/ContentPreprocess.php \Drupal\content_moderation\ContentPreprocess::create()
- 8.9.x core/modules/content_moderation/src/ContentPreprocess.php \Drupal\content_moderation\ContentPreprocess::create()
- 11.x core/modules/content_moderation/src/ContentPreprocess.php \Drupal\content_moderation\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_moderationCode
public static function create(ContainerInterface $container) {
return new static($container->get('current_route_match'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.