function TabledragWarningCommand::getAttachedAssets

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

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.