Converted SegmentEditor to Twig