Piwik\Plugins\ProfessionalServices\Promo::getContent PHP Method

getContent() public method

public getContent ( )
    public function getContent()
    {
        $content = $this->content;
        shuffle($content);
        return array_shift($content);
    }

Usage Example

Example #1
0
 public function render()
 {
     $view = new View('@ProfessionalServices/promoServicesWidget');
     $promo = $this->promo->getContent();
     $view->ctaLinkUrl = $promo['url'];
     $view->ctaText = $promo['text'];
     $view->ctaLinkTitle = $this->promo->getLinkTitle();
     return $view->render();
 }
All Usage Examples Of Piwik\Plugins\ProfessionalServices\Promo::getContent