You are here

public function YamlForm::setJavaScript in YAML Form 8

Sets the form's JavaScript.

Parameters

string $javascript: The form's JavaScript.

Return value

$this

Overrides YamlFormInterface::setJavaScript

File

src/Entity/YamlForm.php, line 429

Class

YamlForm
Defines the form entity.

Namespace

Drupal\yamlform\Entity

Code

public function setJavaScript($javascript) {
  $this->javascript = $javascript;
  return $this;
}