- Issue created by @aangel
On a site I'm upgrading to D10, I'm seeing lots of these errors for each of the components:
Undefined property: Drupal\layout_builder_kit\Plugin\Block\LBKImage\LBKImage::$derivativeId
These methods aren't needed:
/**
* {@inheritdoc}
*/
public function getPluginDefinition() {
return $this->pluginDefinition;
}
/**
* {@inheritdoc}
*/
public function getPluginId() {
return $this->pluginId;
}
/**
* {@inheritdoc}
*/
public function getBaseId() {
return $this->baseId;
}
/**
* {@inheritdoc}
*/
public function getDerivativeId() {
return $this->derivativeId;
}
Also, add the baseId in the LBKBaseComponent and, for completeness, add:
public function getDerivativeDefinition($derivative_id) {
// Since this block plugin has no derivatives, we simply return null.
return null;
}
Active
2.0
Code