You are here

protected function StepsBlock::getState in Opigno Learning path 3.x

Get the state of the module.

1 call to StepsBlock::getState()
StepsBlock::processModuleList in src/Plugin/Block/StepsBlock.php
Process module list.

File

src/Plugin/Block/StepsBlock.php, line 231

Class

StepsBlock
Provides a 'article' block.

Namespace

Drupal\opigno_learning_path\Plugin\Block

Code

protected function getState(array $step) : ?string {
  return opigno_learning_path_get_step_status($step, $this
    ->currentUser()
    ->id(), TRUE);
}