You are here

protected function ExtraFieldViewsPlugin::getViewDisplay in Entity Extra Field 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/ExtraFieldType/ExtraFieldViewsPlugin.php \Drupal\entity_extra_field\Plugin\ExtraFieldType\ExtraFieldViewsPlugin::getViewDisplay()

Get the view display.

Return value

string The view display name; otherwise default.

1 call to ExtraFieldViewsPlugin::getViewDisplay()
ExtraFieldViewsPlugin::renderView in src/Plugin/ExtraFieldType/ExtraFieldViewsPlugin.php
Render the view.

File

src/Plugin/ExtraFieldType/ExtraFieldViewsPlugin.php, line 170

Class

ExtraFieldViewsPlugin
Define extra field views plugin.

Namespace

Drupal\entity_extra_field\Plugin\ExtraFieldType

Code

protected function getViewDisplay() {
  $configuration = $this
    ->getConfiguration();
  return isset($configuration['display']) ? $configuration['display'] : 'default';
}