ActivityInterface.php in Open Social 10.0.x
Same filename and directory in other branches
- 8.9 modules/custom/activity_creator/src/ActivityInterface.php
- 8 modules/custom/activity_creator/src/ActivityInterface.php
- 8.2 modules/custom/activity_creator/src/ActivityInterface.php
- 8.3 modules/custom/activity_creator/src/ActivityInterface.php
- 8.4 modules/custom/activity_creator/src/ActivityInterface.php
- 8.5 modules/custom/activity_creator/src/ActivityInterface.php
- 8.6 modules/custom/activity_creator/src/ActivityInterface.php
- 8.7 modules/custom/activity_creator/src/ActivityInterface.php
- 8.8 modules/custom/activity_creator/src/ActivityInterface.php
- 10.3.x modules/custom/activity_creator/src/ActivityInterface.php
- 10.1.x modules/custom/activity_creator/src/ActivityInterface.php
- 10.2.x modules/custom/activity_creator/src/ActivityInterface.php
Namespace
Drupal\activity_creatorFile
modules/custom/activity_creator/src/ActivityInterface.phpView source
<?php
namespace Drupal\activity_creator;
use Drupal\Core\Entity\ContentEntityInterface;
use Drupal\Core\Entity\EntityChangedInterface;
use Drupal\user\EntityOwnerInterface;
/**
* Provides an interface for defining Activity entities.
*
* @ingroup activity_creator
*/
interface ActivityInterface extends ContentEntityInterface, EntityChangedInterface, EntityOwnerInterface {
/**
* Gets the Activity creation timestamp.
*
* @return int
* Creation timestamp of the Activity.
*/
public function getCreatedTime();
/**
* Sets the Activity creation timestamp.
*
* @param int $timestamp
* The Activity creation timestamp.
*
* @return \Drupal\activity_creator\ActivityInterface
* The called Activity entity.
*/
public function setCreatedTime($timestamp);
/**
* Returns the Activity published status indicator.
*
* Unpublished Activity are only visible to restricted users.
*
* @return bool
* TRUE if the Activity is published.
*/
public function isPublished();
/**
* Sets the published status of a Activity.
*
* @param bool $published
* TRUE to set this Activity to published, FALSE to set it to unpublished.
*
* @return \Drupal\activity_creator\ActivityInterface
* The called Activity entity.
*/
public function setPublished($published);
/**
* Get related entity url.
*
* @return \Drupal\Core\Url|string
* Empty string if entity canonical url could not be found.
*/
public function getRelatedEntityUrl();
/**
* Get destinations.
*
* @return array
* The list of destinations.
*/
public function getDestinations();
}
Interfaces
Name | Description |
---|---|
ActivityInterface | Provides an interface for defining Activity entities. |