GroupOperationsBlockLP.php in Opigno Learning path 3.x
Same filename and directory in other branches
Namespace
Drupal\opigno_learning_path\Plugin\BlockFile
src/Plugin/Block/GroupOperationsBlockLP.phpView source
<?php
namespace Drupal\opigno_learning_path\Plugin\Block;
use Drupal\Core\Block\BlockBase;
/**
* Provides a 'GroupOperationsBlockLP' block.
*
* @Block(
* id = "group_operations_lp",
* admin_label = @Translation("Opigno Group Operations Block"),
* )
*/
class GroupOperationsBlockLP extends BlockBase {
/**
* Non cacheable group join/leave link block.
*/
public function build() {
$build['content'] = [
'#create_placeholder' => TRUE,
'#lazy_builder' => [
'opigno_learning_path.group_operations:getLink',
[],
],
];
return $build;
}
}
Classes
Name | Description |
---|---|
GroupOperationsBlockLP | Provides a 'GroupOperationsBlockLP' block. |