src/View/Helper/CommonHelper.php
public function metaRobots($type = null) {
		if ($type === null && ($meta = Configure::read('Config.robots')) !== null) {
			$type = $meta;
		}
		$content = [];
		if ($type === 'public') {
			//$this->privatePage = false;
			$content['robots'] = ['index', 'follow', 'noarchive'];
		} else {
			//$this->privatePage = true;
			$content['robots'] = ['noindex', 'nofollow', 'noarchive'];
		}

		$return = '<meta name="robots" content="' . implode(',', $content['robots']) . '" />';
		return $return;
	}
public function metaRobots($type = null) {
		if ($type === null && ($meta = Configure::read('Config.robots')) !== null) {
			$type = $meta;
		}
		$content = [];
		if ($type === 'public') {
			//$this->privatePage = false;
			$content['robots'] = ['index', 'follow', 'noarchive'];
		} else {
			//$this->privatePage = true;
			$content['robots'] = ['noindex', 'nofollow', 'noarchive'];
		}

		$return = '<meta name="robots" content="' . implode(',', $content['robots']) . '" />';
		return $return;
	}
public function metaRobots ( $ type = null ) { if ( $ type === null && ( $ meta = Configure :: read ( 'Config.robots' ) ) !== null ) { $ type = $ meta ; } $ content = [ ] ; if ( $ type === 'public' ) { //$this->privatePage = false; $ content [ 'robots' ] = [ 'index' , 'follow' , 'noarchive' ] ; } else { //$this->privatePage = true; $ content [ 'robots' ] = [ 'noindex' , 'nofollow' , 'noarchive' ] ; } $ return = '<meta name="robots" content="' . implode ( ',' , $ content [ 'robots' ] ) . '" />' ; return $ return ; }
Convenience method for clean ROBOTS allowance

@param string|null $type - private/public
@return string HTML
Convenience method for clean ROBOTS allowance