<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Kunstmaan\ArticleBundle\Entity\AbstractTag;
use Symfony\Component\Form\AbstractType;
use App\Form\NewsTagAdminType;
use Kunstmaan\NodeSearchBundle\Helper\SearchTypeInterface;
#[ORM\Entity]
#[ORM\Table(name: 'app_itempage_tags')]
#[ORM\UniqueConstraint(name: 'itempage_tag_name_idx', columns: ['name'])]
#[Gedmo\SoftDeleteable(fieldName: 'deletedAt')]
class NewsTag extends AbstractTag implements SearchTypeInterface
{
/**
* Returns the default backend form type for this page
*
* @return string
*/
public function getAdminType()
{
return NewsTagAdminType::class;
}
/**
* {@inheritdoc}
*/
public function getSearchType()
{
return 'Categories';
}
}