class BookContentBlock in Open Social 10.1.x
Same name and namespace in other branches
- 10.3.x modules/social_features/social_content_block/modules/social_book_content_block/src/Plugin/ContentBlock/BookContentBlock.php \Drupal\social_book_content_block\Plugin\ContentBlock\BookContentBlock
- 10.2.x modules/social_features/social_content_block/modules/social_book_content_block/src/Plugin/ContentBlock/BookContentBlock.php \Drupal\social_book_content_block\Plugin\ContentBlock\BookContentBlock
Provides a content block for books.
Plugin annotation
@ContentBlock(
id = "book_content_block",
entityTypeId = "node",
bundle = "book",
fields = {},
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\social_content_block\ContentBlockBase implements ContentBlockPluginInterface
- class \Drupal\social_book_content_block\Plugin\ContentBlock\BookContentBlock
- class \Drupal\social_content_block\ContentBlockBase implements ContentBlockPluginInterface
Expanded class hierarchy of BookContentBlock
File
- modules/
social_features/ social_content_block/ modules/ social_book_content_block/ src/ Plugin/ ContentBlock/ BookContentBlock.php, line 18
Namespace
Drupal\social_book_content_block\Plugin\ContentBlockView source
class BookContentBlock extends ContentBlockBase {
/**
* {@inheritdoc}
*/
public function query(SelectInterface $query, array $fields) {
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BookContentBlock:: |
public | function |
Create filtering query. Overrides ContentBlockPluginInterface:: |
|
ContentBlockBase:: |
public | function |
The sort options that are supported for this content block type. Overrides ContentBlockPluginInterface:: |
1 |
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | 1 |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
2 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. | |
PluginBase:: |
public | function | Constructs a \Drupal\Component\Plugin\PluginBase object. | 98 |