You are here

abstract class LearningPathMembersPluginBase in Opigno Learning path 8

Same name and namespace in other branches
  1. 3.x src/LearningPathMembersPluginBase.php \Drupal\opigno_learning_path\LearningPathMembersPluginBase

Class LearningPathMembersPluginBase.

Hierarchy

Expanded class hierarchy of LearningPathMembersPluginBase

2 files declare their use of LearningPathMembersPluginBase
MembersPlugin.php in src/Plugin/LearningPathMembers/MembersPlugin.php
RecipientsPlugin.php in src/Plugin/LearningPathMembers/RecipientsPlugin.php

File

src/LearningPathMembersPluginBase.php, line 13

Namespace

Drupal\opigno_learning_path
View source
abstract class LearningPathMembersPluginBase extends PluginBase implements LearningPathMembersPluginInterface {

  /**
   * LearningPathMembersPluginBase constructor.
   */
  public function __construct(array $configuration, $plugin_id, $plugin_definition) {
    parent::__construct($configuration, $plugin_id, $plugin_definition);
  }

  /**
   * {@inheritdoc}
   */
  public function getId() {
    return $this->pluginDefinition['id'];
  }

  /**
   * {@inheritdoc}
   */
  public function getMembersForm(array &$form, FormStateInterface $form_state, User $current_user) {
  }

  /**
   * Returns group members uids.
   *
   * @param \Drupal\group\Entity\Group $group
   *   Group object.
   *
   * @return array|null
   *   Array of members uids if exist, null otherwise.
   */
  public function getGroupMembersIds(Group $group) {
  }

}

Members

Namesort descending Modifiers Type Description Overrides
LearningPathMembersPluginBase::getGroupMembersIds public function Returns group members uids. 1
LearningPathMembersPluginBase::getId public function Get plugin id. Overrides LearningPathMembersPluginInterface::getId
LearningPathMembersPluginBase::getMembersForm public function Get members form. Overrides LearningPathMembersPluginInterface::getMembersForm 2
LearningPathMembersPluginBase::__construct public function LearningPathMembersPluginBase constructor. Overrides PluginBase::__construct
PluginBase::$configuration protected property Configuration information passed into the plugin. 1
PluginBase::$pluginDefinition protected property The plugin implementation definition. 1
PluginBase::$pluginId protected property The plugin_id.
PluginBase::DERIVATIVE_SEPARATOR constant A string which is used to separate base plugin IDs from the derivative ID.
PluginBase::getBaseId public function Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface::getBaseId
PluginBase::getDerivativeId public function Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface::getDerivativeId
PluginBase::getPluginDefinition public function Gets the definition of the plugin implementation. Overrides PluginInspectionInterface::getPluginDefinition 3
PluginBase::getPluginId public function Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface::getPluginId
PluginBase::isConfigurable public function Determines if the plugin is configurable.