Commit 9d11fa42 authored by alexpott's avatar alexpott

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

parent a7254dba
......@@ -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);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment