public function render(Collection $collectionComponent)
 {
     $componentCount = count($collectionComponent->getComponents());
     $emptyCssClass = $componentCount === 0 ? ' collection-empty' : null;
     $html = '<div class="collection collection-' . $collectionComponent->getName() . $emptyCssClass . '">';
     foreach ($collectionComponent->getComponents() as $component) {
         /** @var Component $component */
         $html .= $component->render();
     }
     $html .= '</div>';
     return $html;
 }
 public function render(Collection $collectionComponent)
 {
     $html = '';
     foreach ($collectionComponent->getComponents() as $component) {
         /** @var Component $component */
         $html .= $component->render();
     }
     return $html;
 }