You are here

public function BackgroundImageFormTrait::setSubformValue in Background Image 8

Same name and namespace in other branches
  1. 2.x src/BackgroundImageFormTrait.php \Drupal\background_image\BackgroundImageFormTrait::setSubformValue()
  2. 2.0.x src/BackgroundImageFormTrait.php \Drupal\background_image\BackgroundImageFormTrait::setSubformValue()

Implements \Drupal\Core\Form\FormStateInterface::setValue()

1 call to BackgroundImageFormTrait::setSubformValue()
BackgroundImageForm::submit in src/Form/BackgroundImageForm.php
Submit handler.

File

src/BackgroundImageFormTrait.php, line 664

Class

BackgroundImageFormTrait
Trait BackgroundImageFormTrait.

Namespace

Drupal\background_image

Code

public function setSubformValue($key, $value) {
  NestedArray::setValue($this
    ->getSubformValues(), (array) $key, $value, TRUE);
  return $this;
}