You are here

protected function EntityListWrapper::setProperty in Entity API 7

File

includes/entity.wrapper.inc, line 1064
Provides wrappers allowing easy usage of the entity metadata.

Class

EntityListWrapper
Wraps a list of values.

Code

protected function setProperty($delta, $value) {
  $data = parent::value();
  if (is_numeric($delta)) {
    $data[$delta] = $value;
    $this
      ->set($data);
  }
}