You are here

ThrobberWave.php in Ajax loader 8

File

src/Plugin/ajax_loader/ThrobberWave.php
View source
<?php

namespace Drupal\ajax_loader\Plugin\ajax_loader;

use Drupal\ajax_loader\ThrobberPluginBase;

/**
 * Class ThrobberWave.
 *
 * @Throbber(
 *   id = "throbber_wave",
 *   label = @Translation("Wave")
 * )
 */
class ThrobberWave extends ThrobberPluginBase {

  /**
   * Function to set markup.
   *
   * @inheritdoc
   */
  protected function setMarkup() {
    return '<div class="ajax-throbber sk-wave">
              <div class="sk-rect sk-rect1"></div>
              <div class="sk-rect sk-rect2"></div>
              <div class="sk-rect sk-rect3"></div>
              <div class="sk-rect sk-rect4"></div>
              <div class="sk-rect sk-rect5"></div>
            </div>';
  }

  /**
   * Function to set css file.
   *
   * @inheritdoc
   */
  protected function setCssFile() {
    return $this->path . '/css/wave.css';
  }

}

Classes

Namesort descending Description
ThrobberWave Class ThrobberWave.