/** * Retrieve object instance; optionally add meta tag * * @param string $content * @param string $keyValue * @param string $keyType * @param array $modifiers * @param string $placement * @return self */ public function __invoke($content = null, $keyValue = null, $keyType = 'name', $modifiers = array(), $placement = null) { if (null === $placement) { $placement = Placeholder\Container\AbstractContainer::SET; } parent::__invoke($content, $keyValue, $keyType, $modifiers, $placement); return $this; }
/** * @issue 3751 */ public function testItempropIsNotSupportedByDefaultDoctype() { try { $this->helper->__invoke('HeadMeta with Microdata', 'description', 'itemprop'); $this->fail('meta itemprop attribute should not be supported on default doctype'); } catch (ViewException $e) { $this->assertContains('Invalid value passed', $e->getMessage()); } }
/** * Retrieve object instance; optionally add meta tag * * @param string $content * @param string $keyValue * @param string $keyType * @param array $modifiers * @param string $placement * * @return HeadMeta */ public function __invoke($content = null, $keyValue = null, $keyType = 'name', $modifiers = array(), $placement = AbstractContainer::APPEND) { $this->setRcmDefaultMeta(); return parent::__invoke($content, $keyValue, $keyType, $modifiers, $placement); }