Provides an interface defining a paragraphs entity.
Expanded class hierarchy of LibraryItemInterface
All classes that implement LibraryItemInterface
interface LibraryItemInterface extends ContentEntityInterface, EntityOwnerInterface, EntityChangedInterface, RevisionLogInterface, EntityPublishedInterface {
/**
* Creates a library entity from a paragraph entity.
*
* @param \Drupal\paragraphs\ParagraphInterface $paragraph
* The paragraph entity.
*
* @throws \Exception
* If a conversion is attempted for bundles that don't support it.
*
* @return static
* The library item entity.
*/
public static function createFromParagraph(ParagraphInterface $paragraph);
/**
* Gets the library item creation timestamp.
*
* @return int
* Creation timestamp of the library item.
*/
public function getCreatedTime();
/**
* Sets the library item creation timestamp.
*
* @param int $timestamp
* The library item creation timestamp.
*
* @return $this
* The called library item entity.
*/
public function setCreatedTime($timestamp);
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LibraryItemInterface:: |
public static | function | Creates a library entity from a paragraph entity. | 1 |
LibraryItemInterface:: |
public | function | Gets the library item creation timestamp. | 1 |
LibraryItemInterface:: |
public | function | Sets the library item creation timestamp. | 1 |