You are here

private function CarouselItem::setValue in bootstrap simple carousel 8

Set an entity value by name.

8 calls to CarouselItem::setValue()
CarouselItem::setCaptionText in src/Entity/CarouselItem.php
Set caption text.
CarouselItem::setCaptionTitle in src/Entity/CarouselItem.php
Set caption title.
CarouselItem::setImageAlt in src/Entity/CarouselItem.php
Set image alt.
CarouselItem::setImageId in src/Entity/CarouselItem.php
Set image id.
CarouselItem::setImageLink in src/Entity/CarouselItem.php
Set image link.

... See full list

File

src/Entity/CarouselItem.php, line 68

Class

CarouselItem
Defines the carousel item entity class.

Namespace

Drupal\bootstrap_simple_carousel\Entity

Code

private function setValue($field_name, $field_value) {
  if (isset($this->values[$field_name])) {
    $this->values[$field_name][$this->activeLangcode] = $field_value;
  }
  return $this;
}