public function StaticLayout::getScriptFiles

Returns the list of JS files associated with this layout.

2 calls to StaticLayout::getScriptFiles()
StaticLayout::getAdminScriptFiles in drupal/core/modules/layout/lib/Drupal/layout/Plugin/Layout/StaticLayout.php
Returns the list of administrative JS files associated with this layout.
StaticLayout::renderLayout in drupal/core/modules/layout/lib/Drupal/layout/Plugin/Layout/StaticLayout.php
Implements Drupal\layout\Plugin\LayoutInterface::renderLayout().

File

drupal/core/modules/layout/lib/Drupal/layout/Plugin/Layout/StaticLayout.php, line 62
Contains \Drupal\layout\Plugin\Layout\StaticLayout.

Class

StaticLayout
Plugin annotation @Plugin( id = "static_layout", derivative = "Drupal\layout\Plugin\Derivative\Layout" )

Namespace

Drupal\layout\Plugin\Layout

Code

public function getScriptFiles() {
  $definition = $this
    ->getPluginDefinition();
  return isset($definition['scripts']) ? $definition['scripts'] : array();
}