You are here

public function EventDateStringField::__construct in RNG - Events and Registrations 8.2

Same name and namespace in other branches
  1. 3.x src/Plugin/views/field/EventDateStringField.php \Drupal\rng\Plugin\views\field\EventDateStringField::__construct()

Constructs a new Date object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin ID for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.

\Drupal\Core\Entity\EntityStorageInterface $date_format_storage: The date format storage.

Overrides Date::__construct

File

src/Plugin/views/field/EventDateStringField.php, line 70

Class

EventDateStringField
A handler to provide a field that is completely custom by the administrator.

Namespace

Drupal\rng\Plugin\views\field

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, DateFormatterInterface $date_formatter, EventManagerInterface $event_manager, EntityFieldManagerInterface $entityFieldManager, EntityTypeManagerInterface $entityTypeManager, ViewsHandlerManager $joinManager, Connection $database) {
  $this->eventManager = $event_manager;
  $this->entityFieldManager = $entityFieldManager;
  $this->entityTypeManager = $entityTypeManager;
  $this->joinManager = $joinManager;
  $this->database = $database;
  parent::__construct($configuration, $plugin_id, $plugin_definition, $date_formatter, $entityTypeManager
    ->getStorage('date_format'));
}