Unverified Commit 340e724e authored by Mateu Aguiló Bosch's avatar Mateu Aguiló Bosch
Browse files

Issue #3315198 by Dave Reid, e0ipso: Provide a new Views display plugin for no markup

parent 512cfe24
Loading
Loading
Loading
Loading
+37 −0
Original line number Diff line number Diff line
<?php

namespace Drupal\nomarkup\Plugin\views\style;

use Drupal\views\Plugin\views\style\StylePluginBase;

/**
 * Views style plugin to display rows without any additional markup.
 *
 * @ingroup views_style_plugins
 *
 * @ViewsStyle(
 *   id = "nomarkup",
 *   title = @Translation("No markup"),
 *   help = @Translation("Displays rows without any additional markup."),
 *   theme = "views_view_nomarkup",
 *   display_types = {"normal"}
 * )
 */
class NoMarkup extends StylePluginBase {

  /**
   * {@inheritdoc}
   */
  protected $usesGrouping = FALSE;

  /**
   * {@inheritdoc}
   */
  protected $usesRowPlugin = TRUE;

  /**
   * {@inheritdoc}
   */
  protected $usesOptions = FALSE;

}
+3 −0
Original line number Diff line number Diff line
{% for row in rows %}
  {{- row -}}
{% endfor %}