You are here

constant SocialAlbumOptionsSelectWidget::VISIBILITY_MAPPING in Open Social 10.0.x

Same name and namespace in other branches
  1. 10.3.x modules/social_features/social_album/src/Plugin/Field/FieldWidget/SocialAlbumOptionsSelectWidget.php \Drupal\social_album\Plugin\Field\FieldWidget\SocialAlbumOptionsSelectWidget::VISIBILITY_MAPPING
  2. 10.1.x modules/social_features/social_album/src/Plugin/Field/FieldWidget/SocialAlbumOptionsSelectWidget.php \Drupal\social_album\Plugin\Field\FieldWidget\SocialAlbumOptionsSelectWidget::VISIBILITY_MAPPING
  3. 10.2.x modules/social_features/social_album/src/Plugin/Field/FieldWidget/SocialAlbumOptionsSelectWidget.php \Drupal\social_album\Plugin\Field\FieldWidget\SocialAlbumOptionsSelectWidget::VISIBILITY_MAPPING

The visibility options mapping.

The associative array where keys are node options and values are the corresponding post options.

See also

field.storage.node.field_content_visibility.yml

field.storage.post.field_visibility.yml

File

modules/social_features/social_album/src/Plugin/Field/FieldWidget/SocialAlbumOptionsSelectWidget.php, line 36

Class

SocialAlbumOptionsSelectWidget
Plugin implementation of the 'social_album_options_select' widget.

Namespace

Drupal\social_album\Plugin\Field\FieldWidget

Code

const VISIBILITY_MAPPING = [
  '0' => 'community',
  '1' => 'public',
  '2' => 'community',
  '3' => 'group',
];