You are here

public function RenderedEntity::__construct in Entity API 8.0

Constructs a new RenderedEntity object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

array $plugin_definition: The plugin implementation definition.

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

Overrides HandlerBase::__construct

File

src/Plugin/views/field/RenderedEntity.php, line 58
Contains \Drupal\entity\Plugin\views\field\RenderedEntity.

Class

RenderedEntity
Provides a field handler which renders an entity in a certain view mode.

Namespace

Drupal\entity\Plugin\views\field

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, EntityManagerInterface $entity_manager, LanguageManagerInterface $language_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityManager = $entity_manager;
  $this->languageManager = $language_manager;
}