getOpenGraphData() public method

For more information see: http://ogp.me/ $data = array( 'title' => 'The Rock (1996)', 'type' => 'video.movie', 'image' => 'http://ia.media-imdb.com/images/M/MV5BMTM3MTczOTM1OF5BMl5BanBnXkFtZTYwMjc1NDA5._V1_SY317_CR4,0,214,317_.jpg', 'url' => 'http://www.imdb.com/title/tt0117500/', 'site_name' => 'IMDb' );
public getOpenGraphData ( ) : array
return array
Beispiel #1
0
 /**
  * Use the open graph data of a open graph aware object.
  *
  * @param OpenGraphAware $object
  */
 public function fromObject(OpenGraphAware $object)
 {
     $properties = $object->getOpenGraphData();
     $this->validateProperties($properties);
     foreach ($properties as $property => $value) {
         $this->properties[$property] = $value;
     }
 }