protected function ExtraFieldViewsPlugin::loadView 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::loadView()
Load view instance.
Parameters
$view_name: The view name.
Return value
\Drupal\Core\Entity\EntityInterface|null The view instance.
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
\Drupal\Component\Plugin\Exception\PluginNotFoundException
2 calls to ExtraFieldViewsPlugin::loadView()
- ExtraFieldViewsPlugin::buildConfigurationForm in src/
Plugin/ ExtraFieldType/ ExtraFieldViewsPlugin.php - Form constructor.
- ExtraFieldViewsPlugin::getView in src/
Plugin/ ExtraFieldType/ ExtraFieldViewsPlugin.php - Get the view instance.
File
- src/
Plugin/ ExtraFieldType/ ExtraFieldViewsPlugin.php, line 263
Class
- ExtraFieldViewsPlugin
- Define extra field views plugin.
Namespace
Drupal\entity_extra_field\Plugin\ExtraFieldTypeCode
protected function loadView($view_name) {
return $this
->getViewStorage()
->load($view_name);
}