src/Entity/Pages/PartenariatPage.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Pages;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity()]
  6. #[ORM\Table(name'app_partenariat_pages')]
  7. class PartenariatPage extends \Kunstmaan\NodeBundle\Entity\AbstractPage implements \Kunstmaan\PagePartBundle\Helper\HasPageTemplateInterface
  8. {
  9.     #[ORM\Column(name'caption'type'text'nullabletrue)]
  10.     private $description;
  11.     /**
  12.      * Set description.
  13.      *
  14.      * @param string|null $description
  15.      *
  16.      * @return PartenariatPage
  17.      */
  18.     public function setDescription($description null)
  19.     {
  20.         $this->description $description;
  21.         return $this;
  22.     }
  23.     /**
  24.      * Get description.
  25.      *
  26.      * @return string|null
  27.      */
  28.     public function getDescription()
  29.     {
  30.         return $this->description;
  31.     }
  32.     /**
  33.      * Returns the default backend form type for this page.
  34.      *
  35.      * @return string
  36.      */
  37.     public function getDefaultAdminType()
  38.     {
  39.         return \App\Form\Pages\PartenariatPageAdminType::class;
  40.     }
  41.     /**
  42.      * @return array
  43.      */
  44.     public function getPossibleChildTypes()
  45.     {
  46.         return [];
  47.     }
  48.     /**
  49.      * @return string[]
  50.      */
  51.     public function getPagePartAdminConfigurations()
  52.     {
  53.         return [
  54.             'partenariatmain',
  55.         ];
  56.     }
  57.     /**
  58.      * {@inheritdoc}
  59.      */
  60.     public function getPageTemplates()
  61.     {
  62.         return [
  63.             'partenariatpage',
  64.         ];
  65.     }
  66.     /**
  67.      * Get the twig view.
  68.      *
  69.      * @return string
  70.      */
  71.     public function getDefaultView()
  72.     {
  73.         return 'Pages\PartenariatPage\view.html.twig';
  74.     }
  75. }