You are here

protected static function LayoutEntityDisplayNormalizer::getDataWithoutInternals in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/Normalizer/LayoutEntityDisplayNormalizer.php \Drupal\layout_builder\Normalizer\LayoutEntityDisplayNormalizer::getDataWithoutInternals()
  2. 9 core/modules/layout_builder/src/Normalizer/LayoutEntityDisplayNormalizer.php \Drupal\layout_builder\Normalizer\LayoutEntityDisplayNormalizer::getDataWithoutInternals()

File

core/modules/layout_builder/src/Normalizer/LayoutEntityDisplayNormalizer.php, line 24

Class

LayoutEntityDisplayNormalizer
Normalizes/denormalizes LayoutEntityDisplay objects into an array structure.

Namespace

Drupal\layout_builder\Normalizer

Code

protected static function getDataWithoutInternals(array $data) {
  $data = parent::getDataWithoutInternals($data);

  // Do not expose the actual layout sections in normalization.
  // @todo Determine what to expose here in
  //   https://www.drupal.org/node/2942975.
  unset($data['third_party_settings']['layout_builder']['sections']);
  return $data;
}