Skip to content

Commit

Permalink
Update readme for Twitter setImage (#126)
Browse files Browse the repository at this point in the history
Twitter:addImage is deprecated, and Twitter:addImages no longer exists.
  • Loading branch information
sbtsrbayer authored and vinicius73 committed Mar 7, 2019
1 parent 3419e24 commit a31d9be
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -506,14 +506,13 @@ Twitter::setTitle($type); // title of twitter card tag
Twitter::setSite($type); // site of twitter card tag
Twitter::setDescription($type); // description of twitter card tag
Twitter::setUrl($type); // url of twitter card tag
Twitter::addImage($url); // add image url
Twitter::addImages($url); // add an array of url images
Twitter::setImage($url); // add image url


// You can chain methods
Twitter::addValue($key, $value)
->setType($type)
->addImage($url)
->addImages($url)
->setImage($url)
->setTitle($title)
->setDescription($description)
->setUrl($url)
Expand Down

0 comments on commit a31d9be

Please sign in to comment.