You are here

protected function ExtraFieldViewsPlugin::getViewStorage 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::getViewStorage()

Get view storage instance.

Return value

\Drupal\Core\Entity\EntityStorageInterface The view storage instance.

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

File

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

Class

ExtraFieldViewsPlugin
Define extra field views plugin.

Namespace

Drupal\entity_extra_field\Plugin\ExtraFieldType

Code

protected function getViewStorage() {
  return $this->entityTypeManager
    ->getStorage('view');
}