field = $field; } /** * Returns the field. * * @return \Drupal\Core\Field\FieldItemListInterface * The field that contains the fieldable entity. */ public function getField() { return $this->field; } /** * Sets the fieldable entity. * * @param \Drupal\Core\Entity\FieldableEntityInterface $entity * A fieldable entity. */ public function setEntity(FieldableEntityInterface $entity) { $this->entity = $entity; } /** * Returns the entity. * * @return \Drupal\Core\Entity\FieldableEntityInterface * A fieldable entity. */ public function getEntity() { return $this->entity; } /** * Sets the uid. * * @param int $uid * The user id. */ public function setUid($uid) { $this->uid = $uid; } /** * Returns the uid. * * @return int * The user id. */ public function getUid() { return $this->uid; } /** * Sets the index. * * @param int $index * The current index. */ public function setIndex($index) { $this->index = $index; } /** * Returns index. * * @return int * The current index. */ public function getIndex() { return $this->index; } }