login studio dscription, fixe #432
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
namespace Drupal\edlp_studio\Plugin\Block;
|
||||
|
||||
// use Drupal\Core\Access\AccessResult;
|
||||
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
|
||||
// use Drupal\Core\Routing\RedirectDestinationTrait;
|
||||
// use Drupal\Core\Routing\RouteMatchInterface;
|
||||
// use Drupal\Core\Url;
|
||||
// use Drupal\Core\Session\AccountInterface;
|
||||
// use Drupal\Core\Block\BlockBase;
|
||||
use Drupal\user\Plugin\Block\UserLoginBlock;
|
||||
// use Drupal\user\UserInterface;
|
||||
// use Symfony\Component\DependencyInjection\ContainerInterface;
|
||||
|
||||
/**
|
||||
* Provides a 'User login' block.
|
||||
*
|
||||
* @Block(
|
||||
* id = "studio_user_login_block",
|
||||
* admin_label = @Translation("Studio User login"),
|
||||
* category = @Translation("Forms")
|
||||
* )
|
||||
*/
|
||||
class StudioUserLoginBlock extends UserLoginBlock implements ContainerFactoryPluginInterface {
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function build() {
|
||||
$build = parent::build();
|
||||
// dpm($build);
|
||||
array_unshift($build, ["studio_description" => [
|
||||
"#markup" => '<span class="studio-description">' . t('The studio displays your bookmarked sounds. You can save them and create your own playlists') . '</span>'
|
||||
]]);
|
||||
return $build;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user