public function Profile::isDefault in Profile 8
Gets whether this is the user's default profile.
A user can have a default profile of each type.
Return value
bool TRUE if this is the user's default profile, FALSE otherwise.
Overrides ProfileInterface::isDefault
2 calls to Profile::isDefault()
- Profile::postSave in src/
Entity/ Profile.php - Acts on a saved entity before the insert or update hook is invoked.
- Profile::preSave in src/
Entity/ Profile.php - Acts on an entity before the presave hook is invoked.
File
- src/
Entity/ Profile.php, line 127
Class
- Profile
- Defines the profile entity class.
Namespace
Drupal\profile\EntityCode
public function isDefault() {
return (bool) $this
->get('is_default')->value;
}