class UrlEmbed in URL Embed 8
A service class for handling URL embeds.
Hierarchy
- class \Drupal\url_embed\UrlEmbed implements UrlEmbedInterface
Expanded class hierarchy of UrlEmbed
1 string reference to 'UrlEmbed'
1 service uses UrlEmbed
File
- src/
UrlEmbed.php, line 15 - Contains Drupal\url_embed\UrlEmbed.
Namespace
Drupal\url_embedView source
class UrlEmbed implements UrlEmbedInterface {
/**
* @var array
*/
public $config;
/**
* @{inheritdoc}
*/
public function __construct(array $config = []) {
$this->config = $config;
}
/**
* @{inheritdoc}
*/
public function getConfig() {
return $this->config;
}
/**
* @{inheritdoc}
*/
public function setConfig(array $config) {
$this->config = $config;
}
/**
* @{inheritdoc}
*/
public function getEmbed($request, array $config = []) {
return Embed::create($request, $config ?: $this->config);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
UrlEmbed:: |
public | property | ||
UrlEmbed:: |
public | function |
inheritdoc} Overrides UrlEmbedInterface:: |
|
UrlEmbed:: |
public | function |
inheritdoc} Overrides UrlEmbedInterface:: |
|
UrlEmbed:: |
public | function |
inheritdoc} Overrides UrlEmbedInterface:: |
|
UrlEmbed:: |
public | function |
inheritdoc} Overrides UrlEmbedInterface:: |