You are here

public function SocialPost::getId in Social Post 8.2

Same name and namespace in other branches
  1. 3.x 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

string The record ID.

File

src/Entity/SocialPost.php, line 55

Class

SocialPost
Defines the Social Post entity.

Namespace

Drupal\social_post\Entity

Code

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