function TabledragWarningCommand::getAttachedAssets

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Ajax/TabledragWarningCommand.php \Drupal\Core\Ajax\TabledragWarningCommand::getAttachedAssets()

Gets the attached assets.

Return value

\Drupal\Core\Asset\AttachedAssets|null The attached assets for this command.

Overrides CommandWithAttachedAssetsInterface::getAttachedAssets

File

core/lib/Drupal/Core/Ajax/TabledragWarningCommand.php, line 48

Class

TabledragWarningCommand
AJAX command for conveying changed tabledrag rows.

Namespace

Drupal\Core\Ajax

Code

public function getAttachedAssets() {
  $assets = new AttachedAssets();
  $assets->setLibraries([
    'core/drupal.tabledrag.ajax',
  ]);
  return $assets;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.