AvatarGeneratorInterface.php in Avatar Kit 8
Namespace
Drupal\avatarsFile
src/AvatarGeneratorInterface.phpView source
<?php
namespace Drupal\avatars;
use Drupal\Core\Config\Entity\ConfigEntityInterface;
/**
* Interface for avatar generator configuration.
*/
interface AvatarGeneratorInterface extends ConfigEntityInterface {
/**
* Returns the plugin instance.
*
* @return \Drupal\avatars\Plugin\AvatarGenerator\AvatarGeneratorPluginInterface
* The plugin instance for this avatar generator.
*/
public function getPlugin();
/**
* Get weight for the avatar generator.
*
* @return mixed
* The weight for the avatar generator.
*/
public function getWeight();
/**
* Set weight for the avatar generator.
*
* @param int $weight
* Weight for the avatar generator.
*
* @return $this
*/
public function setWeight($weight);
}
Interfaces
Name | Description |
---|---|
AvatarGeneratorInterface | Interface for avatar generator configuration. |