Calotype\SEO\Generators\OpenGraphGenerator::fromObject PHP Method

fromObject() public method

Use the open graph data of a open graph aware object.
public fromObject ( Calotype\SEO\Contracts\OpenGraphAware $object )
$object Calotype\SEO\Contracts\OpenGraphAware
    public function fromObject(OpenGraphAware $object)
    {
        $properties = $object->getOpenGraphData();
        $this->validateProperties($properties);
        foreach ($properties as $property => $value) {
            $this->properties[$property] = $value;
        }
    }