Skip to content

Commit

Permalink
fix(policy-link): remove unused label and active fields
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelAlphonso committed Mar 13, 2024
1 parent 307ea17 commit 7258b79
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 42 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
{
"properties": {
"label": {
"placeholder": "cookie-consent.admin.form.privacy-policy.label"
}
}
}
37 changes: 0 additions & 37 deletions src/Charcoal/CookieConsent/Model/Structure/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ class Link extends StructureModel

public const TARGET_BLANK = '_blank';

private bool $active = false;
private ?Translation $label = null;
private string $type = self::DEFAULT_TYPE;
private ?string $target = null;

Expand All @@ -36,41 +34,6 @@ class Link extends StructureModel

private ?LinkRelationRepository $modelRepository = null;

public function getActive(): bool
{
return $this->active;
}

public function isActive(): bool
{
return $this->getActive();
}

/**
* @param mixed $active The active toggle.
*/
public function setActive($active): self
{
$this->active = (bool)$active;

return $this;
}

public function getLabel(): ?Translation
{
return $this->label;
}

/**
* @param mixed $label The link label.
*/
public function setLabel($label): self
{
$this->label = $this->translator()->translation($label);

return $this;
}

public function getType(): ?string
{
return $this->type;
Expand Down

0 comments on commit 7258b79

Please sign in to comment.