Skip to content
Snippets Groups Projects

Issue#2789241:Block-configuration-form.

Open Atul Ghate requested to merge issue/drupal-2789241:usability-issue-2789241 into 11.x
1 file
+ 6
1
Compare changes
  • Side-by-side
  • Inline
@@ -266,8 +266,13 @@ protected function buildVisibilityInterface(array $form, FormStateInterface $for
if (isset($form['user_role'])) {
$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'])) {
$form['request_path']['#title'] = $this->t('Pages');
$form['request_path']['negate']['#type'] = 'radios';
Loading