Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I see we have this code in calendar_plugin_row.inc:
~ln 460
$event = new stdClass();
$event->id = $this->id;
$event->title = $this->title;
$event->type = $this->type;
$event->date_start = $item_start_date;
$event->date_end = $item_end_date;
$event->db_tz = $db_tz;
$event->to_zone = $to_zone;
$event->granularity = $granularity;
$event->increment = $increment;
$event->field = $is_field ? $item : NULL;
$event->url = $this->url;
$event->row = $row;
$event->entity = $entity;
$event->stripe = array();
$event->stripe_label = array();
It would be great if this were actually an extensible class with properties rather than an stdClass()
object... That way it could be re-useable in other contexts without a large copy/past of the required properties.
Comments
Comment #1
Neslee Canil Pinto