Salvattore.php in Salvattore (CSS driven Masonry) 8
File
src/Plugin/views/style/Salvattore.phpView source
<?php
namespace Drupal\salvattore\Plugin\views\style\Salvattore;
use Drupal\core\form\FormStateInterface;
use Drupal\views\Plugin\views\style\StylePluginBase;
/**
* Masonry views style based on Salvattore.
*
* @ingroup views_style_plugins
*
* @ViewsStyle(
* id = "salvattore",
* title = @Translation("Salvattore"),
* help = @Translation("Render a view output using the Salvattore masonry library."),
* theme = "views_view_tardis",
* display_types = { "normal" }
* )
*
*/
class Salvattore extends StylePluginBase {
/**
* Set default options
*/
function defineOptions() {
$options = parent::defineOptions();
$options['class'] = array(
'default' => '',
);
return $options;
}
/**
* Render the given style.
*/
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
}
}
Classes
Name![]() |
Description |
---|---|
Salvattore | Masonry views style based on Salvattore. |