src/Service.php
private function _convertFromAdapter(Adapter $adapter): array
	{
		return [
			'title' => $adapter->title,
			'description' => $adapter->description,
			'url' => $adapter->url,
			'type' => $adapter->type,
			'tags' => $adapter->tags,
			'images' => array_filter($adapter->images, [$this, '_isImageLargeEnough']),
			'image' => $adapter->image,
			'imageWidth' => $adapter->imageWidth,
			'imageHeight' => $adapter->imageHeight,
			'code' => Template::raw($adapter->code ?: ''),
			'width' => $adapter->width,
			'height' => $adapter->height,
			'aspectRatio' => $adapter->aspectRatio,
			'authorName' => $adapter->authorName,
			'authorUrl' => $adapter->authorUrl,
			'providerName' => $adapter->providerName,
			'providerUrl' => $adapter->providerUrl,
			'providerIcons' => array_filter($adapter->providerIcons, [$this, '_isImageLargeEnough']),
			'providerIcon' => $adapter->providerIcon,
			'publishedTime' => $adapter->publishedTime,
			'license' => $adapter->license,
			'feeds' => $adapter->feeds,
		];
	}
private function _convertFromAdapter(Adapter $adapter): array
	{
		return [
			'title' => $adapter->title,
			'description' => $adapter->description,
			'url' => $adapter->url,
			'type' => $adapter->type,
			'tags' => $adapter->tags,
			'images' => array_filter($adapter->images, [$this, '_isImageLargeEnough']),
			'image' => $adapter->image,
			'imageWidth' => $adapter->imageWidth,
			'imageHeight' => $adapter->imageHeight,
			'code' => Template::raw($adapter->code ?: ''),
			'width' => $adapter->width,
			'height' => $adapter->height,
			'aspectRatio' => $adapter->aspectRatio,
			'authorName' => $adapter->authorName,
			'authorUrl' => $adapter->authorUrl,
			'providerName' => $adapter->providerName,
			'providerUrl' => $adapter->providerUrl,
			'providerIcons' => array_filter($adapter->providerIcons, [$this, '_isImageLargeEnough']),
			'providerIcon' => $adapter->providerIcon,
			'publishedTime' => $adapter->publishedTime,
			'license' => $adapter->license,
			'feeds' => $adapter->feeds,
		];
	}
private function _convertFromAdapter ( Adapter $ adapter ) : array { return [ 'title' => $ adapter -> title , 'description' => $ adapter -> description , 'url' => $ adapter -> url , 'type' => $ adapter -> type , 'tags' => $ adapter -> tags , 'images' => array_filter ( $ adapter -> images , [ $ this , '_isImageLargeEnough' ] ) , 'image' => $ adapter -> image , 'imageWidth' => $ adapter -> imageWidth , 'imageHeight' => $ adapter -> imageHeight , 'code' => Template :: raw ( $ adapter -> code ? : '' ) , 'width' => $ adapter -> width , 'height' => $ adapter -> height , 'aspectRatio' => $ adapter -> aspectRatio , 'authorName' => $ adapter -> authorName , 'authorUrl' => $ adapter -> authorUrl , 'providerName' => $ adapter -> providerName , 'providerUrl' => $ adapter -> providerUrl , 'providerIcons' => array_filter ( $ adapter -> providerIcons , [ $ this , '_isImageLargeEnough' ] ) , 'providerIcon' => $ adapter -> providerIcon , 'publishedTime' => $ adapter -> publishedTime , 'license' => $ adapter -> license , 'feeds' => $ adapter -> feeds , ] ; }
Creates an "embedded asset ready" array from an adapter.

@param Adapter $adapter
@return array
Creates an embedded asset ready array from an adapter .