public function FieldNewValue::setValue

Implements \Drupal\Core\TypedData\TypedDataInterface::setValue().

Overrides TypedData::setValue

File

drupal/core/modules/comment/lib/Drupal/comment/FieldNewValue.php, line 39
Contains \Drupal\comment\FieldNewValue.

Class

FieldNewValue
A computed property for the integer value of the 'new' field.

Namespace

Drupal\comment

Code

public function setValue($value, $notify = TRUE) {
  if (isset($value)) {
    throw new ReadOnlyException('Unable to set a computed property.');
  }
}