src/Entity/Pages/InscriptionsContentPage.php line 13

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. use Kunstmaan\NodeBundle\Entity\AbstractPage;
  6. use Kunstmaan\PagePartBundle\Helper\HasPageTemplateInterface;
  7. use Kunstmaan\NodeBundle\Controller\SlugActionInterface;
  8. #[ORM\Entity()]
  9. #[ORM\Table(name'app_inscriptions_content_pages')]
  10. class InscriptionsContentPage extends AbstractPage implements HasPageTemplateInterface
  11. {
  12.     #[ORM\Column(name'intro'type:"text"nullable:true)]
  13.        private $intro;
  14.     /**
  15.      * Set intro
  16.      *
  17.      * @param string $intro
  18.      *
  19.      * @return InscriptionsContentPage
  20.      */
  21.     public function setIntro($intro)
  22.     {
  23.         $this->intro $intro;
  24.         return $this;
  25.     }
  26.     /**
  27.      * Get intro
  28.      *
  29.      * @return string
  30.      */
  31.     public function getIntro()
  32.     {
  33.         return $this->intro;
  34.     }
  35.     /**
  36.      * Returns the default backend form type for this page.
  37.      *
  38.      * @return string
  39.      */
  40.     public function getDefaultAdminType()
  41.     {
  42.         return \App\Form\Pages\InscriptionsContentPageAdminType::class;
  43.     }
  44.     /**
  45.      * @return array
  46.      */
  47.     public function getPossibleChildTypes()
  48.     {
  49.         return [];
  50.     }
  51.     /**
  52.      * @return string[]
  53.      */
  54.     public function getPagePartAdminConfigurations()
  55.     {
  56.         return [
  57.         ];
  58.     }
  59.     /**
  60.      * {@inheritdoc}
  61.      */
  62.     public function getPageTemplates()
  63.     {
  64.         return [
  65.             'inscriptionscontentpage',
  66.         ];
  67.     }
  68.     /**
  69.      * Get the twig view.
  70.      *
  71.      * @return string
  72.      */
  73.     public function getDefaultView()
  74.     {
  75.         return 'Pages/InscriptionsContentPage/view.html.twig';
  76.     }
  77.     public function getControllerAction()
  78.     {
  79.         return 'App\Controller\InscriptionsContentPage:service';
  80.     }
  81. }