You are here

public function AuthorizationProfile::hasValidConsumer in Authorization 8

Does the consumer have valid providers?

Return value

bool Consumer valid.

File

src/Entity/AuthorizationProfile.php, line 224

Class

AuthorizationProfile
Defines the Authorization profile entity.

Namespace

Drupal\authorization\Entity

Code

public function hasValidConsumer() : bool {
  if ($this->consumer_plugin_manager
    ->getDefinition($this
    ->getconsumerId(), FALSE)) {
    return TRUE;
  }
  return FALSE;
}