You are here

public function BackgroundImageFormTrait::unsetSubformValue in Background Image 8

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

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

File

src/BackgroundImageFormTrait.php, line 685

Class

BackgroundImageFormTrait
Trait BackgroundImageFormTrait.

Namespace

Drupal\background_image

Code

public function unsetSubformValue($key) {
  NestedArray::unsetValue($this
    ->getSubformValues(), (array) $key);
  return $this;
}