You are here

public function Agreement::getVisibilityPages in Agreement 8.2

Same name and namespace in other branches
  1. 3.0.x src/Entity/Agreement.php \Drupal\agreement\Entity\Agreement::getVisibilityPages()

Get a formatted visibility pages as a string.

Return value

string Get the visibility pages setting as a string.

File

src/Entity/Agreement.php, line 129

Class

Agreement
Agreement entity.

Namespace

Drupal\agreement\Entity

Code

public function getVisibilityPages() {
  $settings = $this
    ->getSettings();
  return html_entity_decode(strtolower(implode("\n", $settings['visibility']['pages'])));
}