LearningPathMembersPluginBase.php in Opigno Learning path 3.x
File
src/LearningPathMembersPluginBase.php
View source
<?php
namespace Drupal\opigno_learning_path;
use Drupal\Component\Plugin\PluginBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\group\Entity\Group;
use Drupal\user\Entity\User;
abstract class LearningPathMembersPluginBase extends PluginBase implements LearningPathMembersPluginInterface {
public function __construct(array $configuration, $plugin_id, $plugin_definition) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
}
public function getId() {
return $this->pluginDefinition['id'];
}
public function getMembersForm(array &$form, FormStateInterface $form_state, User $current_user) {
}
public function getGroupMembersIds(Group $group) {
}
}