private function Post::getPostVisibilityAllowedValues in Open Social 10.1.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_post/src/Entity/Post.php \Drupal\social_post\Entity\Post::getPostVisibilityAllowedValues()
- 8.8 modules/social_features/social_post/src/Entity/Post.php \Drupal\social_post\Entity\Post::getPostVisibilityAllowedValues()
- 10.3.x modules/social_features/social_post/src/Entity/Post.php \Drupal\social_post\Entity\Post::getPostVisibilityAllowedValues()
- 10.0.x modules/social_features/social_post/src/Entity/Post.php \Drupal\social_post\Entity\Post::getPostVisibilityAllowedValues()
- 10.2.x modules/social_features/social_post/src/Entity/Post.php \Drupal\social_post\Entity\Post::getPostVisibilityAllowedValues()
Get post visibility options.
Return value
array Field allowed values.
2 calls to Post::getPostVisibilityAllowedValues()
- Post::getVisibility in modules/
social_features/ social_post/ src/ Entity/ Post.php - Post::setVisibility in modules/
social_features/ social_post/ src/ Entity/ Post.php
File
- modules/
social_features/ social_post/ src/ Entity/ Post.php, line 249
Class
- Post
- Defines the Post entity.
Namespace
Drupal\social_post\EntityCode
private function getPostVisibilityAllowedValues() {
// Post visibility field storage.
$post_storage = 'field.storage.post.field_visibility';
$config = \Drupal::configFactory()
->getEditable($post_storage);
return $config
->getOriginal('settings.allowed_values');
}