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-2021 Volodymyr Kupriienko
* @license BSD 3-Clause License
*/
namespace ymaker\social\share\drivers;
use ymaker\social\share\base\AbstractDriver;
* Driver for Pinterest.
*
* @see https://pinterest.com
* @author Vladimir Kuprienko <[email protected]>
* @since 1.0
class Pinterest extends AbstractDriver
{
* {@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}';