protected function ExtraFieldViewsPlugin::getView in Entity Extra Field 8
Same name and namespace in other branches
- 2.0.x src/Plugin/ExtraFieldType/ExtraFieldViewsPlugin.php \Drupal\entity_extra_field\Plugin\ExtraFieldType\ExtraFieldViewsPlugin::getView()
Get the view instance.
Return value
bool|\Drupal\Core\Entity\EntityInterface|null The view instance.
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
\Drupal\Component\Plugin\Exception\PluginNotFoundException
1 call to ExtraFieldViewsPlugin::getView()
- ExtraFieldViewsPlugin::calculateDependencies in src/
Plugin/ ExtraFieldType/ ExtraFieldViewsPlugin.php - Calculates dependencies for the configured plugin.
File
- src/
Plugin/ ExtraFieldType/ ExtraFieldViewsPlugin.php, line 144
Class
- ExtraFieldViewsPlugin
- Define extra field views plugin.
Namespace
Drupal\entity_extra_field\Plugin\ExtraFieldTypeCode
protected function getView() {
$view_name = $this
->getViewName();
if (!isset($view_name)) {
return FALSE;
}
return $this
->loadView($view_name);
}