Unless there is a particular advantage or disadvantage to using events over OOP hooks I'd stick with what is there for a bit and see how the community shakes out (both other php projects and drupal itself). It seems like there's some waffling going on.
Drupal 11 compatible version of cas module is 3.0@beta
according to upgrade_status module but
composer require 'drupal/cas:^3.0@beta' 'drupal/cas_attributes:^3@dev' -W<code> results in:
<code>Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires drupal/cas_attributes ^3@dev -> satisfiable by drupal/cas_attributes[3.x-dev (alias of dev-3.x)].
- drupal/cas_attributes dev-3.x requires drupal/cas ^2.1 -> found drupal/cas[2.1.0, 2.2.0, 2.3.1, 2.3.2] but it conflicts with your root composer.json require (^3.0@beta).
- drupal/cas_attributes 3.x-dev is an alias of drupal/cas_attributes dev-3.x and thus requires it to be installed too.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
Suggestions?
Changed into since it didn't make a ton of sense immediately after the DDEV notice.
At some point I did get some stack traces re: stable, so I did end up installing that theme and a patch for this issue ( https://www.drupal.org/project/drupal/issues/3478628 π Fatal error: Uncaught TypeError: Drupal\Core\Extension\ThemeHandler::addTheme() Active ) which isn't strictly related to this issue but it might help out folks with old themes so I thought I'd mention it
Tested successfully as a parent theme on 10.4.0
Would it be better or worse to catch the Drupal\Core\Entity\Exception\UndefinedLinkTemplateException? I think this approach would work and I'll see if I can test since I happen to have this issue on my site.
Might just be a conflict with 3172926 patch, testing.
This patch was failing, probably because there isn't a Kernel directory in the test. I just made one so I could try this patch and see if it fixes my problem. That might be the wrong answer.
I'm currently updating the tutorial to use Drupal 10, Solr 9, and search_api_solr 4.3.5
Clarification of why this guide exists and who it isn't recommended by. Obviously I'm fond of it.
Reroll of #3 which isn't applying at least with 10.2.x
drunken monkey β credited miedward β .
Recreated #2 as a patch because I'm not sure about installing from a core fork
I thought this was working but I was wrong. The approach I went with in the end is this
/**
* Implements hook_editor_js_settings_alter
*/
function mymodule_editor_js_settings_alter(array &$settings) {
// Settings for ckeditor4 youtube plugin responsive setting to be the default
foreach ($settings['editor']['formats'] as $name => $value) {
$settings['editor']['formats'][$name]['editorSettings']['youtube_responsive'] = TRUE;
}
}
I made an issue fork and things before I realized this is probably not desired default behavior but I'm going to put the patch here if people want it to work that way without making a separate module.
miedward β made their first commit to this issueβs fork.