ThrobberPulse.php in Ajax loader 8
Namespace
Drupal\ajax_loader\Plugin\ajax_loaderFile
src/Plugin/ajax_loader/ThrobberPulse.phpView source
<?php
namespace Drupal\ajax_loader\Plugin\ajax_loader;
use Drupal\ajax_loader\ThrobberPluginBase;
/**
* Class ThrobberPulse.
*
* @Throbber(
* id = "throbber_pulse",
* label = @Translation("Pulse")
* )
*/
class ThrobberPulse extends ThrobberPluginBase {
/**
* Function to set markup.
*
* @inheritdoc
*/
protected function setMarkup() {
return '<div class="ajax-throbber sk-spinner sk-spinner-pulse"></div>';
}
/**
* Function to set css file.
*
* @inheritdoc
*/
protected function setCssFile() {
return $this->path . '/css/pulse.css';
}
}
Classes
Name | Description |
---|---|
ThrobberPulse | Class ThrobberPulse. |