vendor/sulu/sulu/src/Sulu/Component/Content/Compat/Block/BlockPropertyType.php line 19

Open in your IDE?
  1. <?php
  2. /*
  3. * This file is part of Sulu.
  4. *
  5. * (c) Sulu GmbH
  6. *
  7. * This source file is subject to the MIT license that is bundled
  8. * with this source code in the file LICENSE.
  9. */
  10. namespace Sulu\Component\Content\Compat\Block;
  11. use Sulu\Component\Content\Compat\PropertyType;
  12. /**
  13. * representation of a block type node in template xml.
  14. */
  15. class BlockPropertyType extends PropertyType
  16. {
  17. /**
  18. * @var array
  19. */
  20. private $settings = [];
  21. public function getSettings()
  22. {
  23. return $this->settings;
  24. }
  25. public function setSettings($settings)
  26. {
  27. $this->settings = $settings;
  28. }
  29. /**
  30. * @param string $languageCode
  31. *
  32. * @return string
  33. */
  34. public function getTitle($languageCode)
  35. {
  36. return $this->getMetadata()->get('title', $languageCode, \ucfirst($this->getName()));
  37. }
  38. }