add() public method

Add a meta to collection.
public add ( string $name, string $content ) : self
$name string
$content string
return self
Esempio 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;
 }
Esempio 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;
 }
Esempio 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;
 }