PostInterface.php in Open Social 8.4
Same filename and directory in other branches
- 8.9 modules/social_features/social_post/src/Entity/PostInterface.php
- 8 modules/social_features/social_post/src/Entity/PostInterface.php
- 8.2 modules/social_features/social_post/src/Entity/PostInterface.php
- 8.3 modules/social_features/social_post/src/Entity/PostInterface.php
- 8.5 modules/social_features/social_post/src/Entity/PostInterface.php
- 8.6 modules/social_features/social_post/src/Entity/PostInterface.php
- 8.7 modules/social_features/social_post/src/Entity/PostInterface.php
- 8.8 modules/social_features/social_post/src/Entity/PostInterface.php
- 10.3.x modules/social_features/social_post/src/Entity/PostInterface.php
- 10.0.x modules/social_features/social_post/src/Entity/PostInterface.php
- 10.1.x modules/social_features/social_post/src/Entity/PostInterface.php
- 10.2.x modules/social_features/social_post/src/Entity/PostInterface.php
Namespace
Drupal\social_post\EntityFile
modules/social_features/social_post/src/Entity/PostInterface.phpView source
<?php
namespace Drupal\social_post\Entity;
use Drupal\Core\Entity\ContentEntityInterface;
use Drupal\Core\Entity\EntityChangedInterface;
use Drupal\user\EntityOwnerInterface;
/**
* Provides an interface for defining Post entities.
*
* @ingroup social_post
*/
interface PostInterface extends ContentEntityInterface, EntityChangedInterface, EntityOwnerInterface {
/**
* Returns the post type.
*
* @return string
* The post type name.
*/
public function getType();
/**
* Sets the post type.
*
* @param string $type
* The post type.
*
* @return $this
*/
public function setType($type);
/**
* Gets the Post creation timestamp.
*
* @return int
* Creation timestamp of the Post.
*/
public function getCreatedTime();
/**
* Sets the Post creation timestamp.
*
* @param int $timestamp
* The Post creation timestamp.
*
* @return \Drupal\social_post\Entity\PostInterface
* The called Post entity.
*/
public function setCreatedTime($timestamp);
/**
* Returns the Post published status indicator.
*
* Unpublished Post are only visible to restricted users.
*
* @return bool
* TRUE if the Post is published.
*/
public function isPublished();
/**
* Sets the published status of a Post.
*
* @param bool $published
* TRUE to set this Post to published, FALSE to set it to unpublished.
*
* @return \Drupal\social_post\Entity\PostInterface
* The called Post entity.
*/
public function setPublished($published);
}
Interfaces
Name | Description |
---|---|
PostInterface | Provides an interface for defining Post entities. |