You are here

protected function Panelizer::getEntityPlugin in Panelizer 8.3

Same name and namespace in other branches
  1. 8.5 src/Panelizer.php \Drupal\panelizer\Panelizer::getEntityPlugin()
  2. 8.4 src/Panelizer.php \Drupal\panelizer\Panelizer::getEntityPlugin()

Gets the Panelizer entity plugin.

Parameters

$entity_type_id: The entity type id.

Return value

\Drupal\panelizer\Plugin\PanelizerEntityInterface

1 call to Panelizer::getEntityPlugin()
Panelizer::isPanelized in src/Panelizer.php
Checks if the given entity type, bundle and view mode are panelized.

File

src/Panelizer.php, line 141

Class

Panelizer
The Panelizer service.

Namespace

Drupal\panelizer

Code

protected function getEntityPlugin($entity_type_id) {
  return $this->panelizerEntityManager
    ->createInstance($entity_type_id, []);
}