You are here

public function BackgroundImageFormTrait::setSubform in Background Image 8

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

Sets a subform element.

Note: this may not be the complete form.

Parameters

array $subform: A render array element for the subform, passed by reference.

Return value

self

File

src/BackgroundImageFormTrait.php, line 631

Class

BackgroundImageFormTrait
Trait BackgroundImageFormTrait.

Namespace

Drupal\background_image

Code

public function setSubform(array &$subform) {
  $this->subform =& $subform;
  return $this;
}