Arcanedev\SeoHelper\Contracts\Entities\MetaCollection::add PHP Method

add() public method

Add a meta to collection.
public add ( string $name, string $content ) : self
$name string
$content string
return self
    public function add($name, $content);

Usage Example

Example #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;
 }
All Usage Examples Of Arcanedev\SeoHelper\Contracts\Entities\MetaCollection::add