interface ContentBlockPluginInterface in Open Social 10.3.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_content_block/src/ContentBlockPluginInterface.php \Drupal\social_content_block\ContentBlockPluginInterface
- 8.8 modules/social_features/social_content_block/src/ContentBlockPluginInterface.php \Drupal\social_content_block\ContentBlockPluginInterface
- 10.0.x modules/social_features/social_content_block/src/ContentBlockPluginInterface.php \Drupal\social_content_block\ContentBlockPluginInterface
- 10.1.x modules/social_features/social_content_block/src/ContentBlockPluginInterface.php \Drupal\social_content_block\ContentBlockPluginInterface
- 10.2.x modules/social_features/social_content_block/src/ContentBlockPluginInterface.php \Drupal\social_content_block\ContentBlockPluginInterface
Interface ContentBlockPluginInterface.
@package Drupal\social_content_block
Hierarchy
- interface \Drupal\social_content_block\ContentBlockPluginInterface
Expanded class hierarchy of ContentBlockPluginInterface
All classes that implement ContentBlockPluginInterface
File
- modules/
social_features/ social_content_block/ src/ ContentBlockPluginInterface.php, line 12
Namespace
Drupal\social_content_blockView source
interface ContentBlockPluginInterface {
/**
* Create filtering query.
*
* @param \Drupal\Core\Database\Query\SelectInterface $query
* The query.
* @param array $fields
* The fields.
*/
public function query(SelectInterface $query, array $fields);
/**
* 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 array
* An array with sorting option's system name as key and a human readable
* label as value.
*/
public function supportedSortOptions() : array;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ContentBlockPluginInterface:: |
public | function | Create filtering query. | 5 |
ContentBlockPluginInterface:: |
public | function | The sort options that are supported for this content block type. | 1 |