You are here

public function EventContentBlock::supportedSortOptions in Open Social 10.1.x

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_content_block/modules/social_event_content_block/src/Plugin/ContentBlock/EventContentBlock.php \Drupal\social_event_content_block\Plugin\ContentBlock\EventContentBlock::supportedSortOptions()
  2. 8.8 modules/social_features/social_content_block/modules/social_event_content_block/src/Plugin/ContentBlock/EventContentBlock.php \Drupal\social_event_content_block\Plugin\ContentBlock\EventContentBlock::supportedSortOptions()
  3. 10.3.x modules/social_features/social_content_block/modules/social_event_content_block/src/Plugin/ContentBlock/EventContentBlock.php \Drupal\social_event_content_block\Plugin\ContentBlock\EventContentBlock::supportedSortOptions()
  4. 10.0.x modules/social_features/social_content_block/modules/social_event_content_block/src/Plugin/ContentBlock/EventContentBlock.php \Drupal\social_event_content_block\Plugin\ContentBlock\EventContentBlock::supportedSortOptions()
  5. 10.2.x modules/social_features/social_content_block/modules/social_event_content_block/src/Plugin/ContentBlock/EventContentBlock.php \Drupal\social_event_content_block\Plugin\ContentBlock\EventContentBlock::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 ContentBlockBase::supportedSortOptions

File

modules/social_features/social_content_block/modules/social_event_content_block/src/Plugin/ContentBlock/EventContentBlock.php, line 176

Class

EventContentBlock
Provides a content block for events.

Namespace

Drupal\social_event_content_block\Plugin\ContentBlock

Code

public function supportedSortOptions() : array {
  $defaults = parent::supportedSortOptions();
  return [
    'event_date' => 'Event date',
  ] + $defaults;
}