You are here

BookContentBlock.php in Open Social 10.1.x

File

modules/social_features/social_content_block/modules/social_book_content_block/src/Plugin/ContentBlock/BookContentBlock.php
View source
<?php

namespace Drupal\social_book_content_block\Plugin\ContentBlock;

use Drupal\Core\Database\Query\SelectInterface;
use Drupal\social_content_block\ContentBlockBase;

/**
 * Provides a content block for books.
 *
 * @ContentBlock(
 *   id = "book_content_block",
 *   entityTypeId = "node",
 *   bundle = "book",
 *   fields = {},
 * )
 */
class BookContentBlock extends ContentBlockBase {

  /**
   * {@inheritdoc}
   */
  public function query(SelectInterface $query, array $fields) {
  }

}

Classes

Namesort descending Description
BookContentBlock Provides a content block for books.