public function get($index) { if ($index !== 0
) { throw new \
InvalidArgumentException('An entity can not have multiple moderation states at the same time.'
);
} return $this->
traitGet($index);
} /**
* {@inheritdoc}
*/
public function onChange($delta) { $this->
updateModeratedEntity($this->list
[$delta]->value
);
parent::
onChange($delta);
} /**
* {@inheritdoc}
*/
public function setValue($values,
$notify = TRUE
) { parent::
setValue($values,
$notify);
$this->valueComputed = TRUE;