You are here

public function ParagraphsAnchorPlugin::__construct in Paragraphs Collection 8

ParagraphsSliderPlugin constructor.

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\EntityFieldManagerInterface $entity_field_manager: The entity field manager service.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.

Overrides ParagraphsBehaviorBase::__construct

File

modules/paragraphs_collection_demo/src/Plugin/paragraphs/Behavior/ParagraphsAnchorPlugin.php, line 47

Class

ParagraphsAnchorPlugin
Provides a Paragraphs Anchor plugin.

Namespace

Drupal\paragraphs_collection_demo\Plugin\paragraphs\Behavior

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityFieldManagerInterface $entity_field_manager, ConfigFactoryInterface $config_factory) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_field_manager);
  $this->configFactory = $config_factory;
}