You are here

public function SocialPost::getId in Social Post 3.x

Same name and namespace in other branches
  1. 8.2 src/Entity/SocialPost.php \Drupal\social_post\Entity\SocialPost::getId()

Gets the record ID in this entity.

This ID is mainly used to perform operations such as deleting or updating the record.

Return value

int The record ID.

File

src/Entity/SocialPost.php, line 56

Class

SocialPost
Defines the Social Post entity.

Namespace

Drupal\social_post\Entity

Code

public function getId() : int {
  return (int) $this
    ->get('id')->value;
}