You are here

public function ParagraphsViewmodeBehavior::__construct in Paragraphs View Modes 8

Constructs a ParagraphsViewmodeBehavior object.

Parameters

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

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Entity\EntityFieldManager $entity_field_manager: The entity field manager.

\Drupal\Core\Entity\EntityDisplayRepositoryInterface $entity_display_repository: The entity display repository.

Overrides ParagraphsBehaviorBase::__construct

File

src/Plugin/paragraphs/Behavior/ParagraphsViewmodeBehavior.php, line 54

Class

ParagraphsViewmodeBehavior
Class ParagraphsViewmodeBehavior.

Namespace

Drupal\paragraphs_viewmode\Plugin\paragraphs\Behavior

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityFieldManager $entity_field_manager, EntityDisplayRepositoryInterface $entity_display_repository) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_field_manager);
  $this->entityDisplayRepository = $entity_display_repository;
}