123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228 |
- <?php
- namespace Drupal\heartbeat\Entity;
- use Drupal\Core\Entity\RevisionLogInterface;
- use Drupal\Core\Entity\RevisionableInterface;
- use Drupal\Component\Utility\Xss;
- use Drupal\Core\Url;
- use Drupal\Core\Entity\EntityChangedInterface;
- use Drupal\user\EntityOwnerInterface;
- /**
- * Provides an interface for defining Heartbeat stream entities.
- *
- * @ingroup heartbeat
- */
- interface HeartbeatStreamInterface extends RevisionableInterface, RevisionLogInterface, EntityChangedInterface, EntityOwnerInterface {
- // Add get/set methods for your configuration properties here.
- /**
- * Gets the Heartbeat stream name.
- *
- * @return string
- * Name of the Heartbeat stream.
- */
- public function getName();
- /**
- * Sets the Heartbeat stream name.
- *
- * @param string $name
- * The Heartbeat stream name.
- *
- * @return \Drupal\heartbeat\Entity\HeartbeatStreamInterface
- * The called Heartbeat stream entity.
- */
- public function setName($name);
- /**
- * Gets the Heartbeat stream creation timestamp.
- *
- * @return int
- * Creation timestamp of the Heartbeat stream.
- */
- public function getCreatedTime();
- /**
- * Sets the Heartbeat stream creation timestamp.
- *
- * @param int $timestamp
- * The Heartbeat stream creation timestamp.
- *
- * @return \Drupal\heartbeat\Entity\HeartbeatStreamInterface
- * The called Heartbeat stream entity.
- */
- public function setCreatedTime($timestamp);
- /**
- * Returns the Heartbeat stream published status indicator.
- *
- * Unpublished Heartbeat stream are only visible to restricted users.
- *
- * @return bool
- * TRUE if the Heartbeat stream is published.
- */
- public function isPublished();
- /**
- * Sets the published status of a Heartbeat stream.
- *
- * @param bool $published
- * TRUE to set this Heartbeat stream to published, FALSE to set it to unpublished.
- *
- * @return \Drupal\heartbeat\Entity\HeartbeatStreamInterface
- * The called Heartbeat stream entity.
- */
- public function setPublished($published);
- /**
- * Gets the Heartbeat stream revision creation timestamp.
- *
- * @return int
- * The UNIX timestamp of when this revision was created.
- */
- public function getRevisionCreationTime();
- /**
- * Sets the Heartbeat stream revision creation timestamp.
- *
- * @param int $timestamp
- * The UNIX timestamp of when this revision was created.
- *
- * @return \Drupal\heartbeat\Entity\HeartbeatStreamInterface
- * The called Heartbeat stream entity.
- */
- public function setRevisionCreationTime($timestamp);
- /**
- * Gets the Heartbeat stream revision author.
- *
- * @return \Drupal\user\UserInterface
- * The user entity for the revision author.
- */
- public function getRevisionUser();
- /**
- * Sets the Heartbeat stream revision author.
- *
- * @param int $uid
- * The user ID of the revision author.
- *
- * @return \Drupal\heartbeat\Entity\HeartbeatStreamInterface
- * The called Heartbeat stream entity.
- */
- public function setRevisionUserId($uid);
- /**
- * @return mixed
- */
- public function getClass();
- /**
- * @param mixed $class
- */
- public function setClass($class);
- /**
- * @return mixed
- */
- public function getRealClass();
- /**
- * @param mixed $real_class
- */
- public function setRealClass($real_class);
- /**
- * @return mixed
- */
- public function getPath();
- /**
- * @param mixed $path
- */
- public function setPath($path);
- /**
- * @return mixed
- */
- public function getTitle();
- /**
- * @param mixed $title
- */
- public function setTitle($title);
- /**
- * @return mixed
- */
- public function getModule();
- /**
- * @param mixed $module
- */
- public function setModule($module);
- /**
- * @return mixed
- */
- public function getVariables();
- /**
- * @param mixed $variables
- */
- public function setVariables($variables);
- /**
- * @return mixed
- */
- public function getSettings();
- /**
- * @param mixed $settings
- */
- public function setSettings($settings);
- /**
- * @return mixed
- */
- public function getTypes();
- /**
- * @param $heartbeat_types
- * @return mixed
- */
- public function setTypes($heartbeat_types);
- /**
- * @return mixed
- */
- public function setWeight($weight);
- /**
- * @param $weight
- * @return mixed
- */
- public function getWeight();
- }
|