You are here

public function ParagraphsStylePlugin::__construct in Paragraphs Collection 8

Constructs a new SelectionBase 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\paragraphs_collection\StyleDiscoveryInterface $yaml: The yaml style discovery.

\Drupal\Core\Session\AccountProxyInterface $current_user: The current user.

Overrides ParagraphsBehaviorBase::__construct

File

src/Plugin/paragraphs/Behavior/ParagraphsStylePlugin.php, line 63

Class

ParagraphsStylePlugin
Provides style selection plugin.

Namespace

Drupal\paragraphs_collection\Plugin\paragraphs\Behavior

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityFieldManager $entity_field_manager, StyleDiscoveryInterface $yaml, AccountProxyInterface $current_user) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_field_manager);
  $this->yamlStyleDiscovery = $yaml;
  $this->currentUser = $current_user;
}