src/Entity/LandingPageBlockTranslation.php line 23

  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use ApiPlatform\Metadata\ApiResource,
  5.     ApiPlatform\Metadata\Get;
  6. use App\Doctrine\Attribute\TargetEntity,
  7.     App\Enum\Language,
  8.     App\Repository\LandingPageBlockTranslationRepository;
  9. #[ApiResource(
  10.     security'is_granted("' Landing::class . '")',
  11.     operations: [ new Get() ],
  12.     extraProperties: ['standard_put' => false],
  13. )]
  14. #[TargetEntity(mappings: [
  15.     'logos' => LandingPageBlockTranslationLogo::class,
  16.     'files' => LandingPageBlockTranslationFile::class
  17. ])]
  18. #[ORM\Entity(repositoryClassLandingPageBlockTranslationRepository::class)]
  19. class LandingPageBlockTranslation extends AbstractBlockTranslation
  20. {
  21.     public function __construct(LandingPageBlock $parentLanguage $lang)
  22.     {
  23.         parent::__construct($parent$lang);
  24.     }
  25. }