You are here

interface ContentBlockPluginInterface in Open Social 10.2.x

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_content_block/src/ContentBlockPluginInterface.php \Drupal\social_content_block\ContentBlockPluginInterface
  2. 8.8 modules/social_features/social_content_block/src/ContentBlockPluginInterface.php \Drupal\social_content_block\ContentBlockPluginInterface
  3. 10.3.x modules/social_features/social_content_block/src/ContentBlockPluginInterface.php \Drupal\social_content_block\ContentBlockPluginInterface
  4. 10.0.x modules/social_features/social_content_block/src/ContentBlockPluginInterface.php \Drupal\social_content_block\ContentBlockPluginInterface
  5. 10.1.x modules/social_features/social_content_block/src/ContentBlockPluginInterface.php \Drupal\social_content_block\ContentBlockPluginInterface

Interface ContentBlockPluginInterface.

@package Drupal\social_content_block

Hierarchy

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_block
View 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

Namesort descending Modifiers Type Description Overrides
ContentBlockPluginInterface::query public function Create filtering query. 5
ContentBlockPluginInterface::supportedSortOptions public function The sort options that are supported for this content block type. 1