Skip to content
Snippets Groups Projects
Commit 9d11fa42 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2569465 by penyaskito: CommentItem must override mainPropertyName()

parent a7254dba
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -156,6 +156,13 @@ public function fieldSettingsForm(array $form, FormStateInterface $form_state) {
return $element;
}
/**
* {@inheritdoc}
*/
public static function mainPropertyName() {
return 'status';
}
/**
* {@inheritdoc}
*/
......
......@@ -60,6 +60,9 @@ public function testCommentItem() {
CommentItemInterface::CLOSED,
CommentItemInterface::OPEN,
]), 'Comment status value in defined range');
$mainProperty = $entity->comment[0]->mainPropertyName();
$this->assertEqual('status', $mainProperty);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment