/** * 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); }
public function testCanPrependTitlesUsingDefaultAttachOrder() { $this->helper->setDefaultAttachOrder('PREPEND'); $placeholder = $this->helper->__invoke('Foo'); $placeholder = $this->helper->__invoke('Bar'); $this->assertEquals('BarFoo', $placeholder->renderTitle()); }
/** * 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); }