public static function ParagraphsAnchorPlugin::create

Overrides ParagraphsBehaviorBase::create

File

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

Class

ParagraphsAnchorPlugin
Provides a Paragraphs Anchor plugin.

Namespace

Drupal\paragraphs_collection_demo\Plugin\paragraphs\Behavior

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('entity_field.manager'), $container
    ->get('config.factory'));
}