public function OgMembership::getCreatedTime in Organic groups 8
Gets the membership creation timestamp.
Return value
int The membership creation timestamp.
Overrides OgMembershipInterface::getCreatedTime
File
- src/
Entity/ OgMembership.php, line 88
Class
- OgMembership
- The membership entity that connects a group and a user.
Namespace
Drupal\og\EntityCode
public function getCreatedTime() : int {
return $this
->getFieldValue('created', 'value') ?: 0;
}