Arcanedev\SeoHelper\Helpers\Meta::make PHP Method

make() public static method

Make Meta instance.
public static make ( string $name, string $content, string $propertyName = 'name', string $prefix = '' ) : Meta
$name string
$content string
$propertyName string
$prefix string
return Meta
    public static function make($name, $content, $propertyName = 'name', $prefix = '')
    {
        return new self($name, $content, $propertyName, $prefix);
    }

Usage Example

Example #1
0
 /**
  * Add a meta to collection.
  *
  * @param  string  $name
  * @param  string  $content
  *
  * @return \Arcanedev\SeoHelper\Entities\MetaCollection
  */
 public function add($name, $content)
 {
     $meta = Meta::make($name, $content);
     if ($meta->isValid() && !$this->isIgnored($name)) {
         $this->put($meta->key(), $meta);
     }
     return $this;
 }
All Usage Examples Of Arcanedev\SeoHelper\Helpers\Meta::make