for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @link https://github.com/yiimaker/yii2-social-share
* @copyright Copyright (c) 2017 Yii Maker
* @license BSD 3-Clause License
*/
namespace ymaker\social\share\drivers;
use ymaker\social\share\base\DriverAbstract;
* DriverAbstract for Pinterest.
* @link https://pinterest.com
*
* @author Vladimir Kuprienko <[email protected]>
* @since 1.0
class Pinterest extends DriverAbstract
{
* @inheritdoc
protected function processShareData()
$this->url = static::encodeData($this->url);
$this->imageUrl = static::encodeData($this->imageUrl);
$this->description = static::encodeData($this->description);
}
protected function buildLink()
return 'https://www.pinterest.com/pin/create/link/?'
. 'url={url}'
. '&media={imageUrl}'
. '&description={description}';