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\EntityCode
public function setJavaScript($javascript) {
$this->javascript = $javascript;
return $this;
}