diff options
Diffstat (limited to 'doc/es_ES/plugin-avatar-provider.markdown')
-rw-r--r-- | doc/es_ES/plugin-avatar-provider.markdown | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/doc/es_ES/plugin-avatar-provider.markdown b/doc/es_ES/plugin-avatar-provider.markdown deleted file mode 100644 index 2cce0647..00000000 --- a/doc/es_ES/plugin-avatar-provider.markdown +++ /dev/null @@ -1,32 +0,0 @@ -Agregando un nuevo avatar del proveedor -======================================= - -Registrar ------------- - -```php -$this->avatarManager->register(new CustomAvatarProvider()); -``` - -Interface ---------- - -El proveedor debe implementar la interface `Kanboard\Core\User\Avatar\AvatarProviderInterface`: - - -| Metodo | Descripcion | -|-------------------------------|---------------------------------------------------------------| -| `render(array $user, $size)` | Renderizar HTML | -| `isActive(array $user)` | Regresa un boolean si el proveedor esta activo | - - -El argumento `$user` es un directorio que contiene estas llaves : - -```php -[ - 'id' => 123, - 'username' => 'admin', - 'name' => 'Administrator', - 'email' => 'me@localhost', -] -``` |