src/Common/Controller/Base.php
protected function setCommonMeta(array $aMeta = [])
    {
        $oMeta = Factory::service('Meta');
        $oMeta
            ->addRaw([
                'charset' => 'utf-8',
            ])
            ->addRaw([
                'name'    => 'viewport',
                'content' => 'width=device-width, initial-scale=1',
            ]);

        foreach ($aMeta as $aItem) {
            $oMeta->addRaw($aItem);
        }
    }
protected function setCommonMeta(array $aMeta = [])
    {
        $oMeta = Factory::service('Meta');
        $oMeta
            ->addRaw([
                'charset' => 'utf-8',
            ])
            ->addRaw([
                'name'    => 'viewport',
                'content' => 'width=device-width, initial-scale=1',
            ]);

        foreach ($aMeta as $aItem) {
            $oMeta->addRaw($aItem);
        }
    }
protected function setCommonMeta ( array $ aMeta = [ ] ) { $ oMeta = Factory :: service ( 'Meta' ) ; $ oMeta -> addRaw ( [ 'charset' => 'utf-8' , ] ) -> addRaw ( [ 'name' => 'viewport' , 'content' => 'width=device-width, initial-scale=1' , ] ) ; foreach ( $ aMeta as $ aItem ) { $ oMeta -> addRaw ( $ aItem ) ; } }
Sets some common meta for every page load

@param array $aMeta Any additional meta items to set

@throws \Nails\Common\Exception\FactoryException
Sets some common meta for every page load