ElementInfoManager does not provide an alterHook definition. This prevents altering element plugin definitions. As more and more contrib provide elements, sometimes it is required to override them for improvements. This is impossible for element plugins.
See alterDefinitions, where it is skipped if there is no alterHook
protected function alterDefinitions(&$definitions) {
if ($this->alterHook) {
$this->moduleHandler->alter($this->alterHook, $definitions);
}
}
Provide an alterHook definition. Invoke \Drupal\Core\Plugin\DefaultPluginManager::alterInfo
in the consturctor so that end users can swap element classes.
Add patch.
Adds a new hook.
A new hook has been added to allow altering of render element plugins. Read the change record → for more.
Fixed
8.8 ⚰️
render system
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.