Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[yaffs-website] / web / core / modules / comment / src / Plugin / Field / FieldType / CommentItem.php
index e3fd2b060eb937f16754e22376ddc00d7e3671cc..d6bbdd34538d65b5b7b471f5ab175ef98c281892 100644 (file)
@@ -21,7 +21,8 @@ use Drupal\Core\Session\AnonymousUserSession;
  *   description = @Translation("This field manages configuration and presentation of comments on an entity."),
  *   list_class = "\Drupal\comment\CommentFieldItemList",
  *   default_widget = "comment_default",
- *   default_formatter = "comment_default"
+ *   default_formatter = "comment_default",
+ *   cardinality = 1,
  * )
  */
 class CommentItem extends FieldItemBase implements CommentItemInterface {
@@ -116,9 +117,8 @@ class CommentItem extends FieldItemBase implements CommentItemInterface {
       '#title' => t('Comments per page'),
       '#default_value' => $settings['per_page'],
       '#required' => TRUE,
-      '#min' => 10,
+      '#min' => 1,
       '#max' => 1000,
-      '#step' => 10,
     ];
     $element['anonymous'] = [
       '#type' => 'select',