add() public method

Add a meta to collection.
public add ( string $name, string $content ) : self
$name string
$content string
return self
Exemplo n.º 1
0
 /**
  * Add a webmaster to collection.
  *
  * @param  string  $webmaster
  * @param  string  $content
  *
  * @return \Arcanedev\SeoHelper\Entities\Webmasters
  */
 public function add($webmaster, $content)
 {
     if (!is_null($name = $this->getWebmasterName($webmaster))) {
         $this->metas->add($name, $content);
     }
     return $this;
 }
Exemplo n.º 2
0
 /**
  * Add a meta to the card.
  *
  * @param  string  $name
  * @param  string  $content
  *
  * @return \Arcanedev\SeoHelper\Entities\Twitter\Card
  */
 public function addMeta($name, $content)
 {
     $this->metas->add($name, $content);
     return $this;
 }
Exemplo n.º 3
0
 /**
  * Add an open graph property.
  *
  * @param  string  $property
  * @param  string  $content
  *
  * @return \Arcanedev\SeoHelper\Entities\OpenGraph\Graph
  */
 public function addProperty($property, $content)
 {
     $this->metas->add($property, $content);
     return $this;
 }