You are here

RealisticDummyContentUserPicture.php in Realistic Dummy Content 8.2

Same filename and directory in other branches
  1. 7.2 api/src/includes/RealisticDummyContentUserPicture.php

File

api/src/includes/RealisticDummyContentUserPicture.php
View source
<?php

namespace Drupal\realistic_dummy_content_api\includes;


/**
 * Represents the user picture.
 */
class RealisticDummyContentUserPicture extends RealisticDummyContentProperty {

  /**
   * {@inheritdoc}
   */
  public function getExtensions() {
    return $this
      ->getImageExtensions();
  }

  /**
   * {@inheritdoc}
   */
  public function implementValueFromFile($file) {
    $file = $this
      ->imageSave($file);
    if ($file) {
      return $file;
    }
  }

}

Classes

Namesort descending Description
RealisticDummyContentUserPicture Represents the user picture.