Unverified Commit a878a80d authored by alexpott's avatar alexpott

Issue #2936464 by phenaproxima, tim.plunkett: Remove setComponent() workaround...

Issue #2936464 by phenaproxima, tim.plunkett: Remove setComponent() workaround in LayoutBuilderEntityViewDisplay
parent bfb8a7da
......@@ -314,12 +314,6 @@ public function onDependencyRemoval(array $dependencies) {
public function setComponent($name, array $options = []) {
parent::setComponent($name, $options);
// @todo Remove workaround for EntityViewBuilder::getSingleFieldDisplay() in
// https://www.drupal.org/project/drupal/issues/2936464.
if ($this->getMode() === static::CUSTOM_MODE) {
return $this;
}
// Only continue if Layout Builder is enabled.
if (!$this->isLayoutBuilderEnabled()) {
return $this;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment