You are here

public function AuthorizationProfile::hasValidProvider in Authorization 8

Does the profile have valid providers?

Return value

bool Provider valid.

File

src/Entity/AuthorizationProfile.php, line 210

Class

AuthorizationProfile
Defines the Authorization profile entity.

Namespace

Drupal\authorization\Entity

Code

public function hasValidProvider() : bool {
  if ($this->provider_plugin_manager
    ->getDefinition($this
    ->getProviderId(), FALSE)) {
    return TRUE;
  }
  return FALSE;
}