public function FieldCollection::__construct in Reference Table Formatter 8
Constructs a new FieldCollection.
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: Third party settings.
\Drupal\reference_table_formatter\EntityToTableRenderer $reference_renderer: The entity-to-table renderer.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_manager: The entity type manager.
\Drupal\Core\Entity\EntityDisplayRepositoryInterface $display_repository: The entity display repository.
Overrides FormatterBase::__construct
File
- src/
Plugin/ Field/ FieldFormatter/ FieldCollection.php, line 56
Class
- FieldCollection
- A field formatter to display a table.
Namespace
Drupal\reference_table_formatter\Plugin\Field\FieldFormatterCode
public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, $label, $view_mode, array $third_party_settings, EntityToTableRenderer $reference_renderer, EntityTypeManagerInterface $entity_manager, EntityDisplayRepositoryInterface $display_repository) {
@trigger_error(__CLASS__ . ' is deprecated in reference_table_formatter:8.x-1.0 and is removed from reference_table_formatter:2.0.0. Use paragraphs instead of field collection in Drupal 8+. See https://www.drupal.org/node/3157846', E_USER_DEPRECATED);
parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $label, $view_mode, $third_party_settings, $reference_renderer, $entity_manager, $display_repository);
}