
| Current Path : /var/www/html/ift/web/core/modules/layout_builder/src/Normalizer/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/ift/web/core/modules/layout_builder/src/Normalizer/LayoutEntityDisplayNormalizer.php |
<?php
namespace Drupal\layout_builder\Normalizer;
use Drupal\layout_builder\Entity\LayoutEntityDisplayInterface;
use Drupal\serialization\Normalizer\ConfigEntityNormalizer;
/**
* Normalizes/denormalizes LayoutEntityDisplay objects into an array structure.
*
* @internal
* Tagged services are internal.
*/
class LayoutEntityDisplayNormalizer extends ConfigEntityNormalizer {
/**
* {@inheritdoc}
*/
protected $supportedInterfaceOrClass = LayoutEntityDisplayInterface::class;
/**
* {@inheritdoc}
*/
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;
}
}