public function ScheduledPublishGenericFormatter::__construct in Scheduled Publish 8.3
Same name and namespace in other branches
- 8.2 src/Plugin/Field/FieldFormatter/ScheduledPublishGenericFormatter.php \Drupal\scheduled_publish\Plugin\Field\FieldFormatter\ScheduledPublishGenericFormatter::__construct()
ScheduledPublishGenericFormatter constructor.
Parameters
$plugin_id:
$plugin_definition:
\Drupal\Core\Field\FieldDefinitionInterface $field_definition:
array $settings:
$label:
$view_mode:
array $third_party_settings:
\Drupal\Core\Logger\LoggerChannelFactoryInterface $loggerChannelFactory:
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager:
Overrides FormatterBase::__construct
File
- src/
Plugin/ Field/ FieldFormatter/ ScheduledPublishGenericFormatter.php, line 56
Class
- ScheduledPublishGenericFormatter
- Plugin implementation of the 'scheduled_publish_generic_formatter' formatter.
Namespace
Drupal\scheduled_publish\Plugin\Field\FieldFormatterCode
public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, $label, $view_mode, array $third_party_settings, LoggerChannelFactoryInterface $loggerChannelFactory, EntityTypeManagerInterface $entityTypeManager) {
parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $label, $view_mode, $third_party_settings);
$this->logger = $loggerChannelFactory
->get('scheduled_publish');
$this->entityTypeManager = $entityTypeManager;
}