Returns the list of JS files associated with this layout.
File
- drupal/core/modules/layout/lib/Drupal/layout/Plugin/layout/layout/StaticLayout.php, line 65
- Definition of Drupal\layout\Plugin\layout\layout\StaticLayout.
Class
- StaticLayout
- Plugin annotation
@Plugin(
id = "static_layout",
derivative = "Drupal\layout\Plugin\Derivative\Layout"
)
Namespace
Drupal\layout\Plugin\layout\layout
Code
public function getScriptFiles() {
$definition = $this
->getDefinition();
return isset($definition['scripts']) ? $definition['scripts'] : array();
}