You are here

ThrobberChasingDots.php in Ajax loader 8

File

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

namespace Drupal\ajax_loader\Plugin\ajax_loader;

use Drupal\ajax_loader\ThrobberPluginBase;

/**
 * Class ThrobberChasingDots.
 *
 * @Throbber(
 *   id = "throbber_chasing_dots",
 *   label = @Translation("Chasing dots")
 * )
 */
class ThrobberChasingDots extends ThrobberPluginBase {

  /**
   * Function to set markup.
   *
   * @inheritdoc
   */
  protected function setMarkup() {
    return '<div class="ajax-throbber sk-chasing-dots">
              <div class="sk-child sk-dot1"></div>
              <div class="sk-child sk-dot2"></div>
            </div>';
  }

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

}

Classes

Namesort descending Description
ThrobberChasingDots Class ThrobberChasingDots.