It seems to be hard, to get the day, starthours, endhours, comment from a TimeSlot.
Introduce a central getValue() function to get better readable code, which is less error prone.

Comments

johnv created an issue. See original summary.

johnv’s picture

Title: Introduce OfficeHoursSlot::getValue() » Introduce OfficeHoursSlot::get() and isEmpty()

mimicing Core/TypedData/ComplexDataInterface

  • johnv committed 18622ea on 8.x-1.x
    Issue #3110642: Introduce OfficeHoursSlot::get() and isEmpty()
    

  • johnv committed 0cfa06a on 8.x-1.x
    Issue #3110642 by johnv: Introduce OfficeHoursSlot::get()
    

  • johnv committed aba0e62 on 8.x-1.x
    Issue #3110642 by johnv: Introduce OfficeHoursDateTime::get()
    
johnv’s picture

Title: Introduce OfficeHoursSlot::get() and isEmpty() » Introduce OfficeHoursDateTime::get() and isEmpty()

  • johnv committed 341c307 on 8.x-1.x
    Issue #3110642 by johnv: Introduce OfficeHoursDateTime::get() and...

  • johnv committed c6256a5 on 8.x-1.x
    Issue #3110642 by johnv: Introduce OfficeHoursDateTime::get(), deprecate...
johnv’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.