You are here

public function Script::getSnippet in Script Manager 8

Get the JavaScript snippet for the entity.

Return value

string The snippet.

Overrides ScriptInterface::getSnippet

File

src/Entity/Script.php, line 89

Class

Script
A script config entity.

Namespace

Drupal\script_manager\Entity

Code

public function getSnippet() {
  return $this->snippet;
}