You are here

private function Post::getPostVisibilityAllowedValues in Open Social 10.3.x

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_post/src/Entity/Post.php \Drupal\social_post\Entity\Post::getPostVisibilityAllowedValues()
  2. 8.8 modules/social_features/social_post/src/Entity/Post.php \Drupal\social_post\Entity\Post::getPostVisibilityAllowedValues()
  3. 10.0.x modules/social_features/social_post/src/Entity/Post.php \Drupal\social_post\Entity\Post::getPostVisibilityAllowedValues()
  4. 10.1.x modules/social_features/social_post/src/Entity/Post.php \Drupal\social_post\Entity\Post::getPostVisibilityAllowedValues()
  5. 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\Entity

Code

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');
}