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

8.7.x
Alex Pott 2018-08-06 16:35:02 +01:00
parent bfb8a7da0f
commit a878a80d6c
No known key found for this signature in database
GPG Key ID: 31905460D4A69276
1 changed files with 0 additions and 6 deletions

View File

@ -314,12 +314,6 @@ class LayoutBuilderEntityViewDisplay extends BaseEntityViewDisplay implements La
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;