function ViewsEntityRow::create

Same name in other branches
  1. 9 core/modules/views/src/Plugin/Derivative/ViewsEntityRow.php \Drupal\views\Plugin\Derivative\ViewsEntityRow::create()
  2. 8.9.x core/modules/views/src/Plugin/Derivative/ViewsEntityRow.php \Drupal\views\Plugin\Derivative\ViewsEntityRow::create()
  3. 11.x core/modules/views/src/Plugin/Derivative/ViewsEntityRow.php \Drupal\views\Plugin\Derivative\ViewsEntityRow::create()

Overrides ContainerDeriverInterface::create

File

core/modules/views/src/Plugin/Derivative/ViewsEntityRow.php, line 69

Class

ViewsEntityRow
Provides views row plugin definitions for all non-special entity types.

Namespace

Drupal\views\Plugin\Derivative

Code

public static function create(ContainerInterface $container, $base_plugin_id) {
    return new static($base_plugin_id, $container->get('entity_type.manager'), $container->get('views.views_data'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.