Skip to content
Snippets Groups Projects

Resolve "Implement Card Grid display format"

Merged Konstantinos Platis requested to merge 16-implement-card-grid-display-format into dev
2 files
+ 40
0
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 38
0
<?php
namespace Drupal\cern_display_formats\Plugin\views\style;
use Drupal\core\form\FormStateInterface;
use Drupal\views\Plugin\views\style\DefaultStyle;
/**
* Style plugin rendering as Card Grid
*
* @ingroup views_style_plugins
*
* @ViewsStyle(
* id = "card_grid",
* title = @Translation("Card Grid"),
* help = @Translation("Displays content as a Card Grid"),
* theme = "views_view_unformatted",
* display_types = {"normal"}
* )
*/
class CardGrid extends DefaultStyle {
protected $usesRowPlugin = true;
/**
* Does the style plugin support custom css class for the rows.
*
* @var bool
*/
protected $usesRowClass = false;
protected $usesoptions = true;
protected $renderFields = true;
}
\ No newline at end of file
Loading