public function GroupOperationsBlockLP::build in Opigno Learning path 3.x
Same name and namespace in other branches
- 8 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\BlockCode
public function build() {
$build['content'] = [
'#create_placeholder' => TRUE,
'#lazy_builder' => [
'opigno_learning_path.group_operations:getLink',
[],
],
];
return $build;
}