You are here

public function GeneralFileLinkFormatter::__construct in Formatter Suite 8

Constructs a GeneralFileLinkFormatter object.

Parameters

string $pluginId: The plugin ID for the formatter.

mixed $pluginDefinition: The plugin implementation definition.

\Drupal\Core\Field\FieldDefinitionInterface $fieldDefinition: The definition of the field to which the formatter is associated.

array $settings: The formatter settings.

string $label: The formatter label display setting.

string $viewMode: The view mode.

array $thirdPartySettings: Any third party settings.

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.

Overrides FormatterBase::__construct

File

src/Plugin/Field/FieldFormatter/GeneralFileLinkFormatter.php, line 96

Class

GeneralFileLinkFormatter
Formats a file field as one or more links.

Namespace

Drupal\formatter_suite\Plugin\Field\FieldFormatter

Code

public function __construct($pluginId, $pluginDefinition, FieldDefinitionInterface $fieldDefinition, array $settings, $label, $viewMode, array $thirdPartySettings, EntityTypeManagerInterface $entityTypeManager) {
  parent::__construct($pluginId, $pluginDefinition, $fieldDefinition, $settings, $label, $viewMode, $thirdPartySettings);
  $this->entityTypeManager = $entityTypeManager;
}