public static function ParagraphsStylePlugin::create

Overrides ParagraphsBehaviorBase::create

File

paragraphs_collection/src/Plugin/paragraphs/Behavior/ParagraphsStylePlugin.php, line 72

Class

ParagraphsStylePlugin
Provides style selection plugin.

Namespace

Drupal\paragraphs_collection\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('paragraphs_collection.style_discovery'), $container
    ->get('current_user'));
}