Skip to content
Snippets Groups Projects

Resolve #3469824 "Commenttestbasecommenttesttrait methods should"

2 files
+ 13
13
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -33,7 +33,7 @@ trait CommentTestTrait {
@@ -33,7 +33,7 @@ trait CommentTestTrait {
* (optional) The comment view mode to be used in comment field formatter.
* (optional) The comment view mode to be used in comment field formatter.
* Defaults to 'full'.
* Defaults to 'full'.
*/
*/
public function addDefaultCommentField($entity_type, $bundle, $field_name = 'comment', $default_value = CommentItemInterface::OPEN, $comment_type_id = 'comment', $comment_view_mode = 'full') {
protected function addDefaultCommentField($entity_type, $bundle, $field_name = 'comment', $default_value = CommentItemInterface::OPEN, $comment_type_id = 'comment', $comment_view_mode = 'full') {
$entity_type_manager = \Drupal::entityTypeManager();
$entity_type_manager = \Drupal::entityTypeManager();
$entity_display_repository = \Drupal::service('entity_display.repository');
$entity_display_repository = \Drupal::service('entity_display.repository');
/** @var \Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager */
/** @var \Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager */
Loading