Commit ba3423f5 authored by catch's avatar catch
Browse files

Issue #1913620 by andypost: Fixed Move comment TypeData to proper place.

parent f0f3b519
......@@ -2,7 +2,7 @@
/**
* @file
* Contains \Drupal\comment\FieldNewItem.
* Contains \Drupal\comment\CommentNewItem.
*/
namespace Drupal\comment;
......@@ -12,7 +12,7 @@
/**
* The field item for the 'new' field.
*/
class FieldNewItem extends IntegerItem {
class CommentNewItem extends IntegerItem {
/**
* Definitions of the contained properties.
......@@ -32,7 +32,7 @@ public function getPropertyDefinitions() {
static::$propertyDefinitions['value'] = array(
'type' => 'integer',
'label' => t('Integer value'),
'class' => '\Drupal\comment\FieldNewValue',
'class' => '\Drupal\comment\CommentNewValue',
'computed' => TRUE,
);
}
......
......@@ -2,7 +2,7 @@
/**
* @file
* Contains \Drupal\comment\FieldNewValue.
* Contains \Drupal\comment\CommentNewValue.
*/
namespace Drupal\comment;
......@@ -16,7 +16,7 @@
*
* @todo: Declare the list of allowed values once supported.
*/
class FieldNewValue extends TypedData {
class CommentNewValue extends TypedData {
/**
* Implements \Drupal\Core\TypedData\TypedDataInterface::getValue().
......
......@@ -200,7 +200,7 @@ public function baseFieldDefinitions() {
'description' => t("The comment 'new' marker for the current user (0 read, 1 new, 2 updated)."),
'type' => 'integer_field',
'computed' => TRUE,
'class' => '\Drupal\comment\FieldNewItem',
'class' => '\Drupal\comment\CommentNewItem',
);
return $properties;
}
......
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