LayoutEntityDisplayNormalizer.php in Drupal 8
File
core/modules/layout_builder/src/Normalizer/LayoutEntityDisplayNormalizer.php
View source
<?php
namespace Drupal\layout_builder\Normalizer;
use Drupal\layout_builder\Entity\LayoutEntityDisplayInterface;
use Drupal\serialization\Normalizer\ConfigEntityNormalizer;
class LayoutEntityDisplayNormalizer extends ConfigEntityNormalizer {
protected $supportedInterfaceOrClass = LayoutEntityDisplayInterface::class;
protected static function getDataWithoutInternals(array $data) {
$data = parent::getDataWithoutInternals($data);
unset($data['third_party_settings']['layout_builder']['sections']);
return $data;
}
}