You are here

public function Webform::setJavaScript in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Entity/Webform.php \Drupal\webform\Entity\Webform::setJavaScript()

Sets the webform's JavaScript.

Parameters

string $javascript: The webform's JavaScript.

Return value

$this

Overrides WebformInterface::setJavaScript

File

src/Entity/Webform.php, line 954

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

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