function EntityView::create

Same name in other branches
  1. 8.x-3.x src/Plugin/Block/EntityView.php \Drupal\ctools\Plugin\Block\EntityView::create()

Overrides ContainerFactoryPluginInterface::create

1 call to EntityView::create()
EntityViewTest::testAccess in tests/src/Kernel/Plugin/Block/EntityViewTest.php
Tests plugin access.

File

src/Plugin/Block/EntityView.php, line 63

Class

EntityView
Provides a block to view a specific entity.

Namespace

Drupal\ctools\Plugin\Block

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
    return new static($configuration, $plugin_id, $plugin_definition, $container->get('entity_type.manager'), $container->get('entity_display.repository'));
}