You are here

protected function ExtraFieldViewsPlugin::getViewName in Entity Extra Field 2.0.x

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

Get the view name.

Return value

string|null The view name; otherwise NULL.

2 calls to ExtraFieldViewsPlugin::getViewName()
ExtraFieldViewsPlugin::getView in src/Plugin/ExtraFieldType/ExtraFieldViewsPlugin.php
Get the view instance.
ExtraFieldViewsPlugin::renderView in src/Plugin/ExtraFieldType/ExtraFieldViewsPlugin.php
Render the view.

File

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

Class

ExtraFieldViewsPlugin
Define extra field views plugin.

Namespace

Drupal\entity_extra_field\Plugin\ExtraFieldType

Code

protected function getViewName() : ?string {
  return $this
    ->getConfiguration()['view_name'] ?? NULL;
}