Skip to content
Snippets Groups Projects
Commit b4f135fa authored by Atul-Ghate's avatar Atul-Ghate
Browse files

Issue#2789241:Block-configuration-form.

parent 2cfb0738
No related branches found
No related tags found
1 merge request!9893Issue#2789241:Block-configuration-form.
...@@ -266,8 +266,13 @@ protected function buildVisibilityInterface(array $form, FormStateInterface $for ...@@ -266,8 +266,13 @@ protected function buildVisibilityInterface(array $form, FormStateInterface $for
if (isset($form['user_role'])) { if (isset($form['user_role'])) {
$form['user_role']['#title'] = $this->t('Roles'); $form['user_role']['#title'] = $this->t('Roles');
unset($form['user_role']['roles']['#description']); $form['user_role']['roles']['#description'] = $this->t('Show this block only if the user has at least one of the selected roles. If you select no roles, the block will show to all users.');
} }
if (isset($form['entity_bundle:node'])) {
$form['entity_bundle:node']['bundles']['#description'] = $this->t('Show this block only if the node is of the selected content type. If you select no types, there will be no type-specific limitation.');
}
if (isset($form['request_path'])) { if (isset($form['request_path'])) {
$form['request_path']['#title'] = $this->t('Pages'); $form['request_path']['#title'] = $this->t('Pages');
$form['request_path']['negate']['#type'] = 'radios'; $form['request_path']['negate']['#type'] = 'radios';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment