src/Entity/PageBlockTranslation.php line 23
<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use ApiPlatform\Metadata\ApiResource,
ApiPlatform\Metadata\Get;
use App\Doctrine\Attribute\TargetEntity,
App\Enum\Language,
App\Repository\PageBlockTranslationRepository;
#[ApiResource(
security: 'is_granted("' . Page::class . '")',
operations: [ new Get() ],
extraProperties: ['standard_put' => false],
)]
#[TargetEntity(mappings: [
'logos' => PageBlockTranslationLogo::class,
'files' => PageBlockTranslationFile::class
])]
#[ORM\Entity(repositoryClass: PageBlockTranslationRepository::class)]
class PageBlockTranslation extends AbstractBlockTranslation
{
public function __construct(PageBlock $parent, Language $lang)
{
parent::__construct($parent, $lang);
}
}