Skip to content

milestone_views ECA model

Source: eca.eca.milestone_views.yml

Purpose: Custom rendering for events and sessions when they appear inside a Views row tied to the milestone taxonomy.

Events the model listens to

Plugin Label
eca_render:entity Render event or session

Entities & contexts touched

  • fedms_event content entity
  • fedms_session content entity
  • taxonomy_term (vocabulary fedms_task_milestone)

Why it exists

The milestones taxonomy (fedms_task_milestone) drives the task workflow (see task_api). Views like views.view.milestones and views.view.milestone_tasks need contextual rendering of related events and sessions — short summaries, links into the right group, formatted dates from field_date.

This model is what turns a generic Views row into a FedMS-aware row.

Editing notes / gotchas

  • Renderer signatures change with view modes. If you add a new view mode on fedms_event or fedms_session, you may need to extend this model to handle it explicitly.
  • The model only has one event today — keep changes scoped inside it rather than fanning out unless there is a real reason.
  • The MTW (Milestone Task Widget) is closely related — see fedms/components/tasks#28.

See also

  • task_api — owns the milestone-driven task lifecycle.
  • views_fields — sibling model that exposes computed fields to Views.
  • fedms_task.module — declares views.view.milestones, views.view.milestone_tasks.