All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.gu.commercial.branding.BrandingFinder.scala Maven / Gradle / Ivy

The newest version!
package com.gu.commercial.branding

object BrandingFinder {

  /**
    * Finds branding of a single content item, tag or section.
    *
    * @param brandable Content item with section, isInappropriateForSponsorship field
    *                  and all tags populated, or Tag, or Section
    * @param edition   in lowercase String format eg. uk
    */
  def findBranding[T: Brandable](edition: String)(brandable: T): Option[Branding] =
    implicitly[Brandable[T]].findBranding(edition)(brandable)

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy