10 merge requests!62Issue #3272848 by RenatoG: When the error appear the field is hidden and the...,!59Issue #3497768: Click JavaScript to close details causes modals to scroll unnecessarily,!35Issue #3366420: \Drupal calls should be avoided in classes,!34Issue #3366420: \Drupal calls should be avoided in classes,!29Issue #3272632 by RenatoG: Add a logic to block and disable the remove item if...,!28Issue #3272632 by RenatoG: Add a logic to block and disable the remove item if...,!23Issue #3272632 by RenatoG: Add a logic to block and disable the remove item if...,!22Issue #3272632 by RenatoG: Add a logic to block and disable the remove item if...,!20Issue #3272632 by RenatoG: Add a logic to block and disable the remove item if...,!7Issue #3320529 by justcaldwell: block_classes_stored setting only retains classes from most recently saved block
$help_text.=' <div class="show-items-used">'.$this->t('<a href="@url_used_items_list@" class="use-ajax" data-dialog-options="{"width":800}" data-dialog-type="modal">Click here</a> to see all the classes used.</div>',[
'@url_used_items_list@'=>$url_used_items_list,
]);
// Put the default help text.
$help_text=$this->t('Customize the styling of this block by adding CSS classes.');
$form['class']=[
'#type'=>'details',
'#title'=>$this->t('Class'),
'#open'=>TRUE,
'#description'=>$help_text,
];
// Put the Modal with all items used.
$help_text.=' <div class="show-items-used">'.$this->t('<a href="@url_used_items_list@" class="use-ajax" data-dialog-options="{"width":800}" data-dialog-type="modal">Click here</a> to see all the classes used.</div>',[
'#description'=>$this->t('Customize the styling of this block by adding CSS classes. Separate multiple classes by spaces. The maxlength configured is @maxlength_block_class_field@. If necessary you can update it <a href="/admin/config/content/block-class/settings">here</a>. This class will appear in the first level of block. <a href="@image_path@/example-1.png">Click here</a> to see a example',[
'#description'=>$this->t('Customize the styling of this block by adding CSS classes. Separate multiple classes by spaces. The maxlength configured is @maxlength_block_class_field@. If necessary you can update it <a href="/admin/config/content/block-class/settings">here</a>. This class will appear in the first level of block. <a href="@image_path@/example-1.png">Click here</a> to see a example',[
$help_text_qty_items.=' '.$this->t('The maximum of classes per block is @qty_classes_per_block@ but if you need you can update this value in the <a href="@url_settings_page@">settings page</a>',[
$help_text_qty_items.=' '.$this->t('The maximum of classes per block is @qty_classes_per_block@ but if you need you can update this value in the <a href="@url_settings_page@">settings page</a>',[
// Create the help text for the multiple attribute fields.
$help_text=$this->t('Customize the this block by adding attributes. E.g. "data-block-type"="admin"');
// Create the help text for the multiple attribute fields.
$help_text=$this->t('Customize the this block by adding attributes. E.g. "data-block-type"="admin"');
// Update the help text with the Modal to show this for the user.
$help_text.=' - <div class="show-items-used">'.$this->t('<a href="@url_used_attribute_list@" class="use-ajax" data-dialog-options="{"width":800}" data-dialog-type="modal">Click here</a> to see all the attributes used.',[
// Update the help text with the Modal to show this for the user.
$help_text.=' - <div class="show-items-used">'.$this->t('<a href="@url_used_attribute_list@" class="use-ajax" data-dialog-options="{"width":800}" data-dialog-type="modal">Click here</a> to see all the attributes used.',[
// If there is a special chat return the error for the user.
$form_state->setErrorByName('replaced_id][third_party_settings][block_class][replaced_id',$this->t('Special chars is not enabled. To enable this, go to the <a href="@url_settings_page@">settings page</a>',[
// If there is a special chat return the error for the user.
$form_state->setErrorByName('replaced_id][third_party_settings][block_class][replaced_id',$this->t('Special chars is not enabled. To enable this, go to the <a href="@url_settings_page@">settings page</a>',[