You are here

AvatarGeneratorInterface.php in Avatar Kit 8

Namespace

Drupal\avatars

File

src/AvatarGeneratorInterface.php
View 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

Namesort descending Description
AvatarGeneratorInterface Interface for avatar generator configuration.