Doesn't the core version requirement in the .info file need to be updated as well?
core_version_requirement: ^8 || ^9 || ^10
Here's a patch adding that
Here's a patch adding this feature
Peter Caritas β created an issue.
I'm attempting to use the advanced mode feature and manually override configuration with json settings. After saving the view, the json settings field is set to null and the view is unchanged. Although, the advanced mode checkbox remains checked. Am I using this correctly?
Here are the json settings I'm adding:
[
default_row_class: true,
center: false,
mode: carousel,
prevButton: '.prev',
nextButton: '.next',
nav: true,
navPosition: 'bottom',
loop: true,
items: 1,
gutter: 0,
slideBy: 1,
autoplay: true,
autoplayTimeout: 12000,
autoplayHoverPause: true,
itemsDesktop: 1,
itemsMobile: 1,
]
Here's a patch removing the JQuery UI Version from info.yml
Peter Caritas β created an issue.
Here's a patch which simply removes the Jquery UI version from the dependencies in info.yml
Peter Caritas β created an issue.
Here's a patch
Peter Caritas β created an issue.
Here's a patch
This is working for me in Drupal 9
$file = File::load($file_id);
$path = \Drupal::service('file_url_generator')->generateAbsoluteString($file->getFileUri());
$menu_link['url'] = Url::fromUri($path);
Here's a patch which adds span tags around the prefix, suffix and slider value. I used the following CSS in my theme to get the desired
.js-output {
display: flex;
justify-content: space-between;
align-items: center;
}
.js-output .slider-prefix-label {
/* Forces side columns to stay same width */
flex: 0 0 100px;
text-align: left;
}
.js-output .slider-suffix-label {
/* Forces side columns to stay same width */
flex: 0 0 100px;
text-align: right;
}
.js-output .slider-position-value {
flex: 1 1 auto;
text-align: center;
}
Peter Caritas β created an issue.
This is what worked for me:
Apply the patch in #19
In the .module file for my custom entity module I added the following:
/**
* Implements hook_entity_type_alter().
*/
function mymodule_entity_type_alter(array &$entity_types) {
/** @var \Drupal\Core\Entity\EntityTypeInterface[] $entity_types */
$entity_types['my_entity']->setLinkTemplate('auto-label', '/admin/structure/my_entity/settings/auto-label');
}
Replacing mymodule with the name of your module and my_entity with the name of the entity (and any other changes to the path to match where your entity admin lives.