src/Entity/ServiceCategory.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\ServiceCategoryRepository")
  6.  */
  7. class ServiceCategory extends AbstractPage
  8. {
  9.     public function getImagePath() {
  10.         return $this->getContent()->getImage();
  11.     }
  12.     public function getRequiredAttrs()
  13.     {
  14.         return [
  15.             'description' => 'html',
  16.         ];
  17.     }
  18. }