public function ContentBlockBase::supportedSortOptions in Open Social 8.8
Same name and namespace in other branches
- 8.9 modules/social_features/social_content_block/src/ContentBlockBase.php \Drupal\social_content_block\ContentBlockBase::supportedSortOptions()
- 10.3.x modules/social_features/social_content_block/src/ContentBlockBase.php \Drupal\social_content_block\ContentBlockBase::supportedSortOptions()
- 10.0.x modules/social_features/social_content_block/src/ContentBlockBase.php \Drupal\social_content_block\ContentBlockBase::supportedSortOptions()
- 10.1.x modules/social_features/social_content_block/src/ContentBlockBase.php \Drupal\social_content_block\ContentBlockBase::supportedSortOptions()
- 10.2.x modules/social_features/social_content_block/src/ContentBlockBase.php \Drupal\social_content_block\ContentBlockBase::supportedSortOptions()
The sort options that are supported for this content block type.
Used to configure the sorting field storage as well as the content block form.
Return value
array An array with sorting option's system name as key and a human readable label as value.
Overrides ContentBlockPluginInterface::supportedSortOptions
1 call to ContentBlockBase::supportedSortOptions()
- EventContentBlock::supportedSortOptions in modules/
social_features/ social_content_block/ modules/ social_event_content_block/ src/ Plugin/ ContentBlock/ EventContentBlock.php - The sort options that are supported for this content block type.
1 method overrides ContentBlockBase::supportedSortOptions()
- EventContentBlock::supportedSortOptions in modules/
social_features/ social_content_block/ modules/ social_event_content_block/ src/ Plugin/ ContentBlock/ EventContentBlock.php - The sort options that are supported for this content block type.
File
- modules/
social_features/ social_content_block/ src/ ContentBlockBase.php, line 20
Class
- ContentBlockBase
- Defines a base content block implementation.
Namespace
Drupal\social_content_blockCode
public function supportedSortOptions() : array {
return [
'created' => 'Last created',
'changed' => 'Last updated',
'most_commented' => 'Most commented',
'most_liked' => 'Most liked',
'last_interacted' => 'Last interacted',
];
}