You are here

class RefreshInstagramTokenActionDeriver in Instagram Feeds 8

Provides an action deriver that finds entity types of InstagramAccountInterface.

Hierarchy

Expanded class hierarchy of RefreshInstagramTokenActionDeriver

See also

\Drupal\instagram_feeds\Plugin\Action\RefreshInstagramTokenAction

File

src/Plugin/Action/Derivative/RefreshInstagramTokenActionDeriver.php, line 14

Namespace

Drupal\instagram_feeds\Plugin\Action\Derivative
View source
class RefreshInstagramTokenActionDeriver extends EntityActionDeriverBase {

  /**
   * {@inheritdoc}
   */
  protected function isApplicable(EntityTypeInterface $entity_type) {
    return $entity_type
      ->entityClassImplements(InstagramAccountInterface::class);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DeriverBase::$derivatives protected property List of derivative definitions. 1
DeriverBase::getDerivativeDefinition public function Gets the definition of a derivative plugin. Overrides DeriverInterface::getDerivativeDefinition
EntityActionDeriverBase::$entityTypeManager protected property The entity type manager.
EntityActionDeriverBase::create public static function Creates a new class instance. Overrides ContainerDeriverInterface::create
EntityActionDeriverBase::getApplicableEntityTypes protected function Gets a list of applicable entity types.
EntityActionDeriverBase::getDerivativeDefinitions public function Gets the definition of all derivatives of a base plugin. Overrides DeriverBase::getDerivativeDefinitions 1
EntityActionDeriverBase::__construct public function Constructs a new EntityActionDeriverBase object.
RefreshInstagramTokenActionDeriver::isApplicable protected function Indicates whether the deriver can be used for the provided entity type. Overrides EntityActionDeriverBase::isApplicable
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.