You are here

public function LeafletAttachment::getType in Leaflet 2.0.x

Same name and namespace in other branches
  1. 8 modules/leaflet_views/src/Plugin/views/display/LeafletAttachment.php \Drupal\leaflet_views\Plugin\views\display\LeafletAttachment::getType()
  2. 2.1.x modules/leaflet_views/src/Plugin/views/display/LeafletAttachment.php \Drupal\leaflet_views\Plugin\views\display\LeafletAttachment::getType()

Returns the display type that this display requires.

This can be used for filtering views plugins. E.g. if a plugin category of 'foo' is specified, only plugins with no 'types' declared or 'types' containing 'foo'. If you have a type of bar, this plugin will not be used. This is applicable for style, row, access, cache, and exposed_form plugins.

Return value

string The required display type. Defaults to 'normal'.

Overrides DisplayPluginBase::getType

See also

\Drupal\views\Views::fetchPluginNames()

File

modules/leaflet_views/src/Plugin/views/display/LeafletAttachment.php, line 105

Class

LeafletAttachment
Plugin attachment of additional leaflet features to leaflet map views.

Namespace

Drupal\leaflet_views\Plugin\views\display

Code

public function getType() {
  return 'leaflet';
}