ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 1 reply, has 1 voice, and was last updated by  zhex900 3 months, 1 week ago.

  • Creator
    Topic
  • #35185

    zhex900
    Participant

    Hi,

    I have created an CalendarEventTypeExtension. Both CalendarEvent and System Calendar Event use it. I want to differentiate CalendarEvent and System Calendar Event in CalendarEventTypeExtension. Is there a way to do it?

    This is what I want to do.
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
    if (SystemCalendar){
    $builder->add(‘field 1’)
    }else{
    $builder->add(‘field 2’)
    }

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #35188

    zhex900
    Participant

    I have found a solution. I injected a requestStack into my typeExtension. Use the request to differentiate System Calendar and Calendar.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.