function LayoutEntityDisplayNormalizer::getDataWithoutInternals

Same name in other branches
  1. 9 core/modules/layout_builder/src/Normalizer/LayoutEntityDisplayNormalizer.php \Drupal\layout_builder\Normalizer\LayoutEntityDisplayNormalizer::getDataWithoutInternals()
  2. 8.9.x core/modules/layout_builder/src/Normalizer/LayoutEntityDisplayNormalizer.php \Drupal\layout_builder\Normalizer\LayoutEntityDisplayNormalizer::getDataWithoutInternals()
  3. 11.x core/modules/layout_builder/src/Normalizer/LayoutEntityDisplayNormalizer.php \Drupal\layout_builder\Normalizer\LayoutEntityDisplayNormalizer::getDataWithoutInternals()

Overrides ConfigEntityNormalizer::getDataWithoutInternals

File

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

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.