You are here

public function ThrobberManager::loadAllThrobberInstances in Ajax loader 8

Loads all available throbbers.

Return value

mixed Return incative for All Throbber Instances.

Overrides ThrobberManagerInterface::loadAllThrobberInstances

File

src/ThrobberManager.php, line 59

Class

ThrobberManager
Gathers the throbber plugins.

Namespace

Drupal\ajax_loader

Code

public function loadAllThrobberInstances() {
  $throbbers = [];
  foreach ($this
    ->getDefinitions() as $definition) {
    array_push($throbbers, $this
      ->createInstance($definition['id']));
  }
  return $throbbers;
}