You are here

protected function CommentLazyBuilders::access in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/comment/src/CommentLazyBuilders.php \Drupal\comment\CommentLazyBuilders::access()

Wraps content_translation_translate_access.

File

core/modules/comment/src/CommentLazyBuilders.php, line 228
Contains \Drupal\comment\CommentLazyBuilders.

Class

CommentLazyBuilders
Defines a service for comment #lazy_builder callbacks.

Namespace

Drupal\comment

Code

protected function access(EntityInterface $entity) {
  return content_translation_translate_access($entity);
}