You are here

public function GroupOperationsBlockLP::build in Opigno Learning path 8

Same name and namespace in other branches
  1. 3.x src/Plugin/Block/GroupOperationsBlockLP.php \Drupal\opigno_learning_path\Plugin\Block\GroupOperationsBlockLP::build()

Non cacheable group join/leave link block.

Overrides BlockPluginInterface::build

File

src/Plugin/Block/GroupOperationsBlockLP.php, line 20

Class

GroupOperationsBlockLP
Provides a 'GroupOperationsBlockLP' block.

Namespace

Drupal\opigno_learning_path\Plugin\Block

Code

public function build() {
  $build['content'] = [
    '#create_placeholder' => TRUE,
    '#lazy_builder' => [
      'opigno_learning_path.group_operations:getLink',
      [],
    ],
  ];
  return $build;
}