Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Calotype
SEO
Generators
RobotsGenerator
addUserAgent
Calotype\SEO\Generators\RobotsGenerator::addUserAgent PHP Method
RobotsGenerator Class Documentation
Show file
Open project: calotype/seo
addUserAgent()
public
method
Add a User-agent to the robots.txt.
public
addUserAgent
(
string
$userAgent
)
$userAgent
string
public function addUserAgent($userAgent) { $this->addLine("User-agent: {$userAgent}"); }
RobotsGenerator
addAllow
addComment
addDisallow
addHost
addLine
addLines
addRuleLine
addSitemap
addSpacer
addUserAgent
generate
reset