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\profileCode
public function exists($id) {
$profile_type = ProfileType::load($id);
return !empty($profile_type);
}