Exemplo n.º 1
0
 /**
  * Retrieve placeholder for title element and optionally set state
  *
  * @param  string $title
  * @param  string $setType
  * @return $this
  */
 public function __invoke($title = null, $setType = null)
 {
     if (null !== $setType) {
         $setType = strtoupper($setType);
     }
     return parent::__invoke($title, $setType);
 }
Exemplo n.º 2
0
 public function testCanPrependTitlesUsingDefaultAttachOrder()
 {
     $this->helper->setDefaultAttachOrder('PREPEND');
     $placeholder = $this->helper->__invoke('Foo');
     $placeholder = $this->helper->__invoke('Bar');
     $this->assertEquals('BarFoo', $placeholder->renderTitle());
 }
Exemplo n.º 3
0
 /**
  * Retrieve placeholder for title element and optionally set state
  *
  * @param  string $title
  * @param  string $setType
  *
  * @return HeadTitle
  */
 public function __invoke($title = null, $setType = null)
 {
     $this->setRcmSiteTitle();
     $this->setRcmPageTitle();
     return parent::__invoke($title, $setType);
 }