public static function ParagraphsLanguagePlugin::create

Overrides ParagraphsBehaviorBase::create

File

paragraphs_collection/src/Plugin/paragraphs/Behavior/ParagraphsLanguagePlugin.php, line 67

Class

ParagraphsLanguagePlugin
Provides a way to hide specific paragraphs depending on the current language.

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('language_manager'), $container
    ->get('module_handler'));
}