addMeta
The method $this->addMeta($key, $meta)
adds html meta-tags for the frontend.
- @param: (string) $key. The key of the meta information.
- @param: (mixed) $meta. The value of the meta information.
Example Usage
<?php
namespace Plugins\Myplugin;
use \Typemill\Plugin;
class Myplugin extends Plugin
{
...
public function myFunction()
{
$this->addMeta('noindex','<meta name="robots" content="noindex">');
}
}