Drupal 8  8.0.2
CommentViewBuilder Class Reference
Inheritance diagram for CommentViewBuilder:

Public Member Functions

 __construct (EntityTypeInterface $entity_type, EntityManagerInterface $entity_manager, LanguageManagerInterface $language_manager, AccountInterface $current_user)
 
- Public Member Functions inherited from EntityViewBuilder
 __construct (EntityTypeInterface $entity_type, EntityManagerInterface $entity_manager, LanguageManagerInterface $language_manager)
 
 view (EntityInterface $entity, $view_mode= 'full', $langcode=NULL)
 
 viewMultiple (array $entities=array(), $view_mode= 'full', $langcode=NULL)
 
 build (array $build)
 
 buildMultiple (array $build_list)
 
 buildComponents (array &$build, array $entities, array $displays, $view_mode)
 
 getCacheTags ()
 
 resetCache (array $entities=NULL)
 
 viewField (FieldItemListInterface $items, $display_options=array())
 
 viewFieldItem (FieldItemInterface $item, $display=array())
 
- Public Member Functions inherited from EntityHandlerBase
 setModuleHandler (ModuleHandlerInterface $module_handler)
 

Static Public Member Functions

static createInstance (ContainerInterface $container, EntityTypeInterface $entity_type)
 
- Static Public Member Functions inherited from EntityViewBuilder
static createInstance (ContainerInterface $container, EntityTypeInterface $entity_type)
 

Protected Member Functions

 alterBuild (array &$build, EntityInterface $comment, EntityViewDisplayInterface $display, $view_mode)
 
- Protected Member Functions inherited from EntityViewBuilder
 getBuildDefaults (EntityInterface $entity, $view_mode)
 
 alterBuild (array &$build, EntityInterface $entity, EntityViewDisplayInterface $display, $view_mode)
 
 isViewModeCacheable ($view_mode)
 
 getSingleFieldDisplay ($entity, $field_name, $display_options)
 
- Protected Member Functions inherited from EntityHandlerBase
 moduleHandler ()
 

Protected Attributes

 $currentUser
 
- Protected Attributes inherited from EntityViewBuilder
 $entityTypeId
 
 $entityType
 
 $entityManager
 
 $cacheBin = 'render'
 
 $languageManager
 
 $singleFieldDisplays
 
- Protected Attributes inherited from EntityHandlerBase
 $moduleHandler
 

Detailed Description

Render controller for comments.

Constructor & Destructor Documentation

__construct ( EntityTypeInterface  $entity_type,
EntityManagerInterface  $entity_manager,
LanguageManagerInterface  $language_manager,
AccountInterface  $current_user 
)

Constructs a new CommentViewBuilder.

Parameters
\Drupal\Core\Entity\EntityTypeInterface$entity_typeThe entity type definition.
\Drupal\Core\Entity\EntityManagerInterface$entity_managerThe entity manager service.
\Drupal\Core\Language\LanguageManagerInterface$language_managerThe language manager.
\Drupal\Core\Session\AccountInterface$current_userThe current user.

References Drupal\currentUser().

Here is the call graph for this function:

Member Function Documentation

alterBuild ( array &  $build,
EntityInterface  $comment,
EntityViewDisplayInterface  $display,
  $view_mode 
)
protected

{}

static createInstance ( ContainerInterface  $container,
EntityTypeInterface  $entity_type 
)
static

{}


The documentation for this class was generated from the following file: