You are here

ThrobberCircle.php in Ajax loader 8

File

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

namespace Drupal\ajax_loader\Plugin\ajax_loader;

use Drupal\ajax_loader\ThrobberPluginBase;

/**
 * Class ThrobberCircle.
 *
 * @Throbber(
 *   id = "throbber_circle",
 *   label = @Translation("Circle")
 * )
 */
class ThrobberCircle extends ThrobberPluginBase {

  /**
   * Function to set markup.
   *
   * @inheritdoc
   */
  protected function setMarkup() {
    return '<div class="ajax-throbber sk-circle">
              <div class="sk-circle1 sk-child"></div>
              <div class="sk-circle2 sk-child"></div>
              <div class="sk-circle3 sk-child"></div>
              <div class="sk-circle4 sk-child"></div>
              <div class="sk-circle5 sk-child"></div>
              <div class="sk-circle6 sk-child"></div>
              <div class="sk-circle7 sk-child"></div>
              <div class="sk-circle8 sk-child"></div>
              <div class="sk-circle9 sk-child"></div>
              <div class="sk-circle10 sk-child"></div>
              <div class="sk-circle11 sk-child"></div>
              <div class="sk-circle12 sk-child"></div>
            </div>';
  }

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

}

Classes

Namesort descending Description
ThrobberCircle Class ThrobberCircle.