public CommentViewBuilder::buildComponents(array &$build, array $entities, array $displays, $view_mode)
In addition to modifying the content key on entities, this implementation will also set the comment entity key which all comments carry.
Throws
\InvalidArgumentException Thrown when a comment is attached to an entity that no longer exists.
Overrides EntityViewBuilder::buildComponents
File
core/modules/comment/src/CommentViewBuilder.php, line 84
Class
CommentViewBuilder View builder