You are here

public function ProfileTypeFormController::exists in Profile 2 8

Check whether the profile type exists.

Parameters

$id:

Return value

bool

File

src/ProfileTypeFormController.php, line 123
Contains \Drupal\profile\ProfileTypeFormController.

Class

ProfileTypeFormController
Form controller for profile type forms.

Namespace

Drupal\profile

Code

public function exists($id) {
  $profile_type = ProfileType::load($id);
  return !empty($profile_type);
}