You are here

public function Profile::id in Profile 2 8

Overrides Entity::id().

Overrides ContentEntityBase::id

File

src/Entity/Profile.php, line 126
Contains \Drupal\profile\Entity\Profile.

Class

Profile
Defines the profile entity class.

Namespace

Drupal\profile\Entity

Code

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