Loading src/UrlEmbed.php +12 −2 Original line number Diff line number Diff line Loading @@ -37,6 +37,8 @@ class UrlEmbed implements UrlEmbedInterface { protected $configFactory; /** * The options passed to the adapter. * * @var array */ public $config; Loading @@ -48,10 +50,10 @@ class UrlEmbed implements UrlEmbedInterface { * The cache backend factory. * @param \Drupal\Core\Datetime\TimeInterface $time * The time factory. * @param array $config * (optional) The options passed to the adapter. * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * (optional) The config factory. * @param array $config * (optional) The options passed to the adapter. */ public function __construct(CacheBackendInterface $cache_backend, TimeInterface $time, ConfigFactoryInterface $config_factory, array $config = []) { $this->cacheBackend = $cache_backend; Loading @@ -67,6 +69,8 @@ class UrlEmbed implements UrlEmbedInterface { } /** * Return the config factory. * * @{inheritdoc} */ public function getConfig() { Loading @@ -74,6 +78,8 @@ class UrlEmbed implements UrlEmbedInterface { } /** * Set the config factory. * * @{inheritdoc} */ public function setConfig(array $config) { Loading @@ -81,6 +87,8 @@ class UrlEmbed implements UrlEmbedInterface { } /** * Return an Embed adapter with our Open Graph data. * * @{inheritdoc} */ public function getEmbed($request, array $config = []) { Loading @@ -88,6 +96,8 @@ class UrlEmbed implements UrlEmbedInterface { } /** * Return Open Graph data from requested URL. * * @{inheritdoc} */ public function getUrlInfo($url) { Loading Loading
src/UrlEmbed.php +12 −2 Original line number Diff line number Diff line Loading @@ -37,6 +37,8 @@ class UrlEmbed implements UrlEmbedInterface { protected $configFactory; /** * The options passed to the adapter. * * @var array */ public $config; Loading @@ -48,10 +50,10 @@ class UrlEmbed implements UrlEmbedInterface { * The cache backend factory. * @param \Drupal\Core\Datetime\TimeInterface $time * The time factory. * @param array $config * (optional) The options passed to the adapter. * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * (optional) The config factory. * @param array $config * (optional) The options passed to the adapter. */ public function __construct(CacheBackendInterface $cache_backend, TimeInterface $time, ConfigFactoryInterface $config_factory, array $config = []) { $this->cacheBackend = $cache_backend; Loading @@ -67,6 +69,8 @@ class UrlEmbed implements UrlEmbedInterface { } /** * Return the config factory. * * @{inheritdoc} */ public function getConfig() { Loading @@ -74,6 +78,8 @@ class UrlEmbed implements UrlEmbedInterface { } /** * Set the config factory. * * @{inheritdoc} */ public function setConfig(array $config) { Loading @@ -81,6 +87,8 @@ class UrlEmbed implements UrlEmbedInterface { } /** * Return an Embed adapter with our Open Graph data. * * @{inheritdoc} */ public function getEmbed($request, array $config = []) { Loading @@ -88,6 +96,8 @@ class UrlEmbed implements UrlEmbedInterface { } /** * Return Open Graph data from requested URL. * * @{inheritdoc} */ public function getUrlInfo($url) { Loading