You are here

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

Class

ExtraFieldViewsPlugin
Define extra field views plugin.

Namespace

Drupal\entity_extra_field\Plugin\ExtraFieldType

Code

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