Log in
Collection

Template\Collection

Magento\Newsletter\Model\ResourceModel\Template\Collection

What it does

This collection class manages and retrieves newsletter template data from the database.

Developers use it to load, filter, and display newsletter templates throughout the admin panel, such as when showing a dropdown of available templates or fetching only active templates for sending newsletters.

Public Methods

  • useOnlyActual()
  • toOptionArray()