You are here

public function ProfileType::getRegistration in Profile 2 8

Return the registration flag for allowing creation of profile type at user registration.

Overrides ProfileTypeInterface::getRegistration

File

src/Entity/ProfileType.php, line 105
Contains \Drupal\profile\Entity\ProfileType.

Class

ProfileType
Defines the profile type entity class.

Namespace

Drupal\profile\Entity

Code

public function getRegistration() {
  return $this
    ->get('registration')->value;
}