You are here

public function ProfileType::setRegistration in Profile 8

Sets whether a profile of this type should be created during registration.

Parameters

bool $registration: Whether a profile of this type should be created during registration.

Return value

$this

Overrides ProfileTypeInterface::setRegistration

File

src/Entity/ProfileType.php, line 162

Class

ProfileType
Defines the profile type entity class.

Namespace

Drupal\profile\Entity

Code

public function setRegistration($registration) {
  $this->registration = $registration;
  return $this;
}