OAuthOSTConfigInterface.php 1.86 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
<?php

namespace Drupal\oauthost\Entity;

use Drupal\Core\Entity\ContentEntityInterface;
use Drupal\Core\Entity\EntityChangedInterface;
use Drupal\user\EntityOwnerInterface;

/**
 * Provides an interface for defining OAuthOST Config entities.
 *
 * @ingroup oauthost
 */
interface OAuthOSTConfigInterface extends  ContentEntityInterface, EntityChangedInterface, EntityOwnerInterface {

  // Add get/set methods for your configuration properties here.

  /**
   * Gets the OAuthOST Config name.
   *
   * @return string
   *   Name of the OAuthOST Config.
   */
  public function getName();

  /**
   * Sets the OAuthOST Config name.
   *
   * @param string $name
   *   The OAuthOST Config name.
   *
   * @return \Drupal\oauthost\Entity\OAuthOSTConfigInterface
   *   The called OAuthOST Config entity.
   */
  public function setName($name);

  /**
   * Gets the OAuthOST Config creation timestamp.
   *
   * @return int
   *   Creation timestamp of the OAuthOST Config.
   */
  public function getCreatedTime();

  /**
   * Sets the OAuthOST Config creation timestamp.
   *
   * @param int $timestamp
   *   The OAuthOST Config creation timestamp.
   *
   * @return \Drupal\oauthost\Entity\OAuthOSTConfigInterface
   *   The called OAuthOST Config entity.
   */
  public function setCreatedTime($timestamp);

  /**
   * Returns the OAuthOST Config published status indicator.
   *
   * Unpublished OAuthOST Config are only visible to restricted users.
   *
   * @return bool
   *   TRUE if the OAuthOST Config is published.
   */
  public function isPublished();

  /**
   * Sets the published status of a OAuthOST Config.
   *
   * @param bool $published
   *   TRUE to set this OAuthOST Config to published, FALSE to set it to unpublished.
   *
   * @return \Drupal\oauthost\Entity\OAuthOSTConfigInterface
   *   The called OAuthOST Config entity.
   */
  public function setPublished($published);

}