public function FormatterWidget::__construct in Formatter Field 8
Constructs a new ModerationStateWidget object.
Parameters
string $plugin_id: Plugin id.
mixed $plugin_definition: Plugin definition.
\Drupal\Core\Field\FieldDefinitionInterface $field_definition: Field definition.
array $settings: Field settings.
array $third_party_settings: Any third party settings.
\Drupal\Core\Field\FormatterPluginManager $formatter_manager: Formatter plugin manager.
\Drupal\Core\Entity\EntityFieldManagerInterface $field_manager: Entity field manager.
Overrides WidgetBase::__construct
File
- src/
Plugin/ Field/ FieldWidget/ FormatterWidget.php, line 59
Class
- FormatterWidget
- Defines the 'formatter' field widget.
Namespace
Drupal\formatter_field\Plugin\Field\FieldWidgetCode
public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, array $third_party_settings, FormatterPluginManager $formatter_manager, EntityFieldManagerInterface $field_manager) {
parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $third_party_settings);
$this->formatterManager = $formatter_manager;
$this->fieldManager = $field_manager;
}