class ContentBlock in Open Social 8.8
Same name and namespace in other branches
- 8.9 modules/social_features/social_content_block/src/Annotation/ContentBlock.php \Drupal\social_content_block\Annotation\ContentBlock
- 10.3.x modules/social_features/social_content_block/src/Annotation/ContentBlock.php \Drupal\social_content_block\Annotation\ContentBlock
- 10.0.x modules/social_features/social_content_block/src/Annotation/ContentBlock.php \Drupal\social_content_block\Annotation\ContentBlock
- 10.1.x modules/social_features/social_content_block/src/Annotation/ContentBlock.php \Drupal\social_content_block\Annotation\ContentBlock
- 10.2.x modules/social_features/social_content_block/src/Annotation/ContentBlock.php \Drupal\social_content_block\Annotation\ContentBlock
Defines a Content Block annotation object.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\social_content_block\Annotation\ContentBlock
Expanded class hierarchy of ContentBlock
1 file declares its use of ContentBlock
- ContentBlockManager.php in modules/
social_features/ social_content_block/ src/ ContentBlockManager.php
3 classes are annotated with ContentBlock
- EventContentBlock in modules/
social_features/ social_content_block/ modules/ social_event_content_block/ src/ Plugin/ ContentBlock/ EventContentBlock.php - Provides a content block for events.
- GroupContentBlock in modules/
social_features/ social_content_block/ modules/ social_group_content_block/ src/ Plugin/ ContentBlock/ GroupContentBlock.php - Provides a content block for groups.
- TopicContentBlock in modules/
social_features/ social_content_block/ src/ Plugin/ ContentBlock/ TopicContentBlock.php - Provides a content block for topics.
File
- modules/
social_features/ social_content_block/ src/ Annotation/ ContentBlock.php, line 14
Namespace
Drupal\social_content_block\AnnotationView source
class ContentBlock extends Plugin {
/**
* The plugin ID.
*
* @var string
*/
public $id;
/**
* The entity type ID.
*
* @var string
*/
public $entityTypeId;
/**
* The bundle.
*
* @var string
*/
public $bundle = NULL;
/**
* An array of fields.
*
* @var array
*/
public $fields;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ContentBlock:: |
public | property | The bundle. | |
ContentBlock:: |
public | property | The entity type ID. | |
ContentBlock:: |
public | property | An array of fields. | |
ContentBlock:: |
public | property | The plugin ID. | |
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. | 2 |