src/Variable.php
public function fromAsset(Asset $asset)
	{
		Craft::$app->getDeprecator()->log('craft.embeddedAssets.fromAsset', "The template method `craft.embeddedAssets.fromAsset` is now deprecated. Use `craft.embeddedAssets.get` instead.");

		return EmbeddedAssets::$plugin->methods->getEmbeddedAsset($asset);
	}
public function fromAsset(Asset $asset)
	{
		Craft::$app->getDeprecator()->log('craft.embeddedAssets.fromAsset', "The template method `craft.embeddedAssets.fromAsset` is now deprecated. Use `craft.embeddedAssets.get` instead.");

		return EmbeddedAssets::$plugin->methods->getEmbeddedAsset($asset);
	}
public function fromAsset ( Asset $ asset ) { Craft :: $ app -> getDeprecator ( ) -> log ( 'craft.embeddedAssets.fromAsset' , "The template method `craft.embeddedAssets.fromAsset` is now deprecated. Use `craft.embeddedAssets.get` instead." ) ; return EmbeddedAssets :: $ plugin -> methods -> getEmbeddedAsset ( $ asset ) ; }
Retrieves the embedded asset model from an asset, if one exists.

@deprecated Will be removed in next major version. Use the `get` method instead.

@param Asset $asset
@return mixed
Retrieves the embedded asset model from an asset if one exists .