src/Entity/LandingPageBlockTranslation.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\LandingPageBlockTranslationRepository;
#[ApiResource(
security: 'is_granted("' . Landing::class . '")',
operations: [ new Get() ],
extraProperties: ['standard_put' => false],
)]
#[TargetEntity(mappings: [
'logos' => LandingPageBlockTranslationLogo::class,
'files' => LandingPageBlockTranslationFile::class
])]
#[ORM\Entity(repositoryClass: LandingPageBlockTranslationRepository::class)]
class LandingPageBlockTranslation extends AbstractBlockTranslation
{
public function __construct(LandingPageBlock $parent, Language $lang)
{
parent::__construct($parent, $lang);
}
}