public function UrlEmbedInterface::getEmbed in URL Embed 8
Parameters
string|\Embed\Request $request: The url or a request with the url
array $config: (optional) Options passed to the adapter. If not provided the default options on the service will be used.
Return value
\Embed\Adapters\AdapterInterface
Throws
\Embed\Exceptions\InvalidUrlException If the urls is not valid
\InvalidArgumentException If any config argument is not valid
1 method overrides UrlEmbedInterface::getEmbed()
- UrlEmbed::getEmbed in src/
UrlEmbed.php - inheritdoc}
File
- src/
UrlEmbedInterface.php, line 37 - Contains Drupal\url_embed\UrlEmbedInterface.
Class
- UrlEmbedInterface
- A service class for handling URL embeds.
Namespace
Drupal\url_embedCode
public function getEmbed($request, array $config = []);