You are here

class Broken in Salesforce Suite 8.4

Same name in this branch
  1. 8.4 src/Plugin/SalesforceAuthProvider/Broken.php \Drupal\salesforce\Plugin\SalesforceAuthProvider\Broken
  2. 8.4 modules/salesforce_mapping/src/Plugin/SalesforceMappingField/Broken.php \Drupal\salesforce_mapping\Plugin\SalesforceMappingField\Broken
Same name and namespace in other branches
  1. 5.0.x src/Plugin/SalesforceAuthProvider/Broken.php \Drupal\salesforce\Plugin\SalesforceAuthProvider\Broken

Fallback for broken / missing plugin.

Plugin annotation


@Plugin(
  id = "broken",
  label = @Translation("Broken or missing provider"),
  credentials_class = "Drupal\salesforce\Consumer\SalesforceCredentials"
)

Hierarchy

Expanded class hierarchy of Broken

File

src/Plugin/SalesforceAuthProvider/Broken.php, line 20

Namespace

Drupal\salesforce\Plugin\SalesforceAuthProvider
View source
class Broken extends SalesforceAuthProviderPluginBase {

  /**
   * {@inheritdoc}
   */
  public function getCredentials() {
    return new SalesforceCredentials('', '', '');
  }

  /**
   * {@inheritdoc}
   */
  public function refreshAccessToken(TokenInterface $token) {
    throw new MissingRefreshTokenException();
  }

  /**
   * {@inheritdoc}
   */
  public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
    $this
      ->messenger()
      ->addError($this
      ->t('Auth provider for %id is missing or broken.', [
      '%id' => $this->id,
    ]));
    return $form;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Broken::buildConfigurationForm public function Form constructor. Overrides PluginFormInterface::buildConfigurationForm
Broken::getCredentials public function Return the credentials configured for this auth provider instance. Overrides SalesforceAuthProviderPluginBase::getCredentials
Broken::refreshAccessToken public function Perform a refresh of the given token. Overrides SalesforceAuthProviderPluginBase::refreshAccessToken
DependencySerializationTrait::$_entityStorages protected property An array of entity type IDs keyed by the property name of their storages.
DependencySerializationTrait::$_serviceIds protected property An array of service IDs keyed by property name used for serialization.
DependencySerializationTrait::__sleep public function 1
DependencySerializationTrait::__wakeup public function 2
MessengerTrait::$messenger protected property The messenger. 29
MessengerTrait::messenger public function Gets the messenger. 29
MessengerTrait::setMessenger public function Sets the messenger.
SalesforceAuthProviderInterface::AUTH_ENDPOINT_PATH constant
SalesforceAuthProviderInterface::AUTH_TOKEN_PATH constant
SalesforceAuthProviderInterface::LATEST_API_VERSION constant
SalesforceAuthProviderInterface::SOAP_CLASS_PATH constant
SalesforceAuthProviderPluginBase::$configuration protected property Configuration.
SalesforceAuthProviderPluginBase::$credentials protected property Credentials. 2
SalesforceAuthProviderPluginBase::$id protected property Instance id, e.g. "sandbox1" or "production".
SalesforceAuthProviderPluginBase::$pluginDefinition protected property Plugin definition.
SalesforceAuthProviderPluginBase::$pluginId protected property Provider id, e.g. jwt, oauth.
SalesforceAuthProviderPluginBase::$storage protected property Token storage.
SalesforceAuthProviderPluginBase::create public static function Creates an instance of the plugin. Overrides ContainerFactoryPluginInterface::create 1
SalesforceAuthProviderPluginBase::defaultConfiguration public static function Default configuration for this plugin type. Overrides SalesforceAuthProviderInterface::defaultConfiguration 2
SalesforceAuthProviderPluginBase::getAccessToken public function Access token for this plugin. Overrides SalesforceAuthProviderInterface::getAccessToken
SalesforceAuthProviderPluginBase::getAccessTokenEndpoint public function Access token URL for this plugin type. Overrides SalesforceAuthProviderInterface::getAccessTokenEndpoint
SalesforceAuthProviderPluginBase::getApiEndpoint public function API Url for this plugin. Overrides SalesforceAuthProviderInterface::getApiEndpoint
SalesforceAuthProviderPluginBase::getApiVersion public function Get the globally configured API version to use. Overrides SalesforceAuthProviderInterface::getApiVersion
SalesforceAuthProviderPluginBase::getAuthorizationEndpoint public function Authorization URL for this plugin type. Overrides SalesforceAuthProviderInterface::getAuthorizationEndpoint
SalesforceAuthProviderPluginBase::getConfiguration public function
SalesforceAuthProviderPluginBase::getIdentity public function Identify for this connection. Overrides SalesforceAuthProviderInterface::getIdentity
SalesforceAuthProviderPluginBase::getInstanceUrl public function Instance URL for this connection. Overrides SalesforceAuthProviderInterface::getInstanceUrl 1
SalesforceAuthProviderPluginBase::getPluginDefinition public function Gets the definition of the plugin implementation. Overrides PluginInspectionInterface::getPluginDefinition 1
SalesforceAuthProviderPluginBase::getPluginId public function Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface::getPluginId
SalesforceAuthProviderPluginBase::getStorage public function Accessor to the storage adapter to be able to retrieve tokens.
SalesforceAuthProviderPluginBase::hasAccessToken public function TRUE if the connection has a token, regardless of validity. Overrides SalesforceAuthProviderInterface::hasAccessToken
SalesforceAuthProviderPluginBase::id public function Id of this service. Overrides SalesforceAuthProviderInterface::id
SalesforceAuthProviderPluginBase::label public function Label of this service. Overrides SalesforceAuthProviderInterface::label
SalesforceAuthProviderPluginBase::refreshIdentity public function Given a token, fetch the SF identity. Overrides SalesforceAuthProviderInterface::refreshIdentity
SalesforceAuthProviderPluginBase::requestAccessToken public function 1
SalesforceAuthProviderPluginBase::revokeAccessToken public function Clear the access token for this auth provider plugin. Overrides SalesforceAuthProviderInterface::revokeAccessToken
SalesforceAuthProviderPluginBase::save public function Callback for configuration form after saving config entity. Overrides SalesforceAuthProviderInterface::save
SalesforceAuthProviderPluginBase::service public function The auth provider service. Overrides SalesforceAuthProviderInterface::service
SalesforceAuthProviderPluginBase::setConfiguration public function
SalesforceAuthProviderPluginBase::submitConfigurationForm public function Form submission handler. Overrides PluginFormInterface::submitConfigurationForm 1
SalesforceAuthProviderPluginBase::validateConfigurationForm public function Form validation handler. Overrides PluginFormInterface::validateConfigurationForm 1
SalesforceAuthProviderPluginBase::__construct public function SalesforceOAuthPlugin constructor. 2
StringTranslationTrait::$stringTranslation protected property The string translation service. 1
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use. 2
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.