UserPicture.php in Realistic Dummy Content 8
Define autoload class.
File
api/src/attributes/UserPicture.phpView source
<?php
/**
* @file
*
* Define autoload class.
*/
namespace Drupal\realistic_dummy_content_api\attributes;
/**
* Represents the user picture
*/
class UserPicture extends Property {
/**
* {@inheritdoc}
*/
function GetExtensions() {
return $this
->GetImageExtensions();
}
/**
* {@inheritdoc}
*/
function ValueFromFile_($file) {
$file = $this
->ImageSave($file);
if ($file) {
return $file;
}
}
}
Classes
Name | Description |
---|---|
UserPicture | Represents the user picture |