public function ParagraphsJQueryUIAccordionFormatter::__construct in Paragraphs jQuery UI Accordion 8
ParagraphsJQueryUIAccordionFormatter constructor.
Parameters
string $plugin_id: The plugin_id for the formatter.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The definition of the field to which the formatter is associated.
array $settings: The formatter settings.
string $label: The formatter label display setting.
string $view_mode: The view mode.
array $third_party_settings: Any third party settings settings.
\Drupal\Core\Entity\EntityTypeBundleInfoInterface $bundle_info: Entity type manager service.
\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.
LoggerChannelFactoryInterface $logger_factory: The logger factory.
\Drupal\Core\Entity\EntityDisplayRepositoryInterface $entity_display_repository: The entity display repository.
\Drupal\Component\Transliteration\TransliterationInterface $transliteration: The transliteration service.
Overrides FormatterBase::__construct
File
- src/
Plugin/ Field/ FieldFormatter/ ParagraphsJQueryUIAccordionFormatter.php, line 106 - Contains \Drupal\paragraphs_jquery_ui_accordion\Plugin\Field\FieldFormatter\ParagraphsJQueryUIAccordionFormatter.
Class
- ParagraphsJQueryUIAccordionFormatter
- Plugin implementation of the 'paragraphs_jquery_ui_accordion_formatter' formatter.
Namespace
Drupal\paragraphs_jquery_ui_accordion\Plugin\Field\FieldFormatterCode
public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, $label, $view_mode, array $third_party_settings, EntityTypeBundleInfoInterface $bundle_info, EntityFieldManagerInterface $entity_field_manager, LoggerChannelFactoryInterface $logger_factory, EntityDisplayRepositoryInterface $entity_display_repository, TransliterationInterface $transliteration) {
parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $label, $view_mode, $third_party_settings);
$this->bundleInfo = $bundle_info;
$this->entityFieldManager = $entity_field_manager;
$this->entityTypeId = $this->fieldDefinition
->getFieldStorageDefinition()
->getSetting('target_type');
$this->loggerFactory = $logger_factory;
$this->entityDisplayRepository = $entity_display_repository;
$this->transliteration = $transliteration;
}