public function Agreement::getVisibilityPages in Agreement 3.0.x
Same name and namespace in other branches
- 8.2 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
- Describes an agreement configuration.
Namespace
Drupal\agreement\EntityCode
public function getVisibilityPages() {
$settings = $this
->getSettings();
return html_entity_decode(strtolower(implode("\n", $settings['visibility']['pages'])));
}