public function LoginShadowboxLoginBlock::blockForm in Shadowbox 8
File
- login_shadowbox/
lib/ Drupal/ login_shadowbox/ Plugin/ Block/ LoginShadowboxLoginBlock.php, line 96 - Contains \Drupal\login_shadowbox\Plugin\Block\LoginShadowboxLoginBlock.
Class
- LoginShadowboxLoginBlock
- Provides a 'Shadowbox Login' block.
Namespace
Drupal\login_shadowbox\Plugin\BlockCode
public function blockForm($form, &$form_state) {
$form['login_shadowbox_login_block_visibility'] = array(
'#type' => 'checkbox',
'#title' => t('Show when logged'),
'#default_value' => $this->configuration['login_shadowbox_login_block_visibility'],
'#description' => t('Check this box if you want to show shadowbox login block with a logout link when user is logged.'),
);
return $form;
}