public static function EmbedButtonInterface::convertImageToEncodedData in Embed 8
Convert a file on the filesystem to encoded data.
Parameters
string $uri: An image file URI.
Return value
array An array of data about the encoded image including:
- uri: The URI of the file.
- data: The base-64 encoded contents of the file.
1 method overrides EmbedButtonInterface::convertImageToEncodedData()
- EmbedButton::convertImageToEncodedData in src/
Entity/ EmbedButton.php - Convert a file on the filesystem to encoded data.
File
- src/
EmbedButtonInterface.php, line 92
Class
- EmbedButtonInterface
- Provides an interface defining a embed button entity.
Namespace
Drupal\embedCode
public static function convertImageToEncodedData($uri);