public function ContentBuilderInterface::build in Open Social 10.1.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_content_block/src/ContentBuilderInterface.php \Drupal\social_content_block\ContentBuilderInterface::build()
- 8.6 modules/social_features/social_content_block/src/ContentBuilderInterface.php \Drupal\social_content_block\ContentBuilderInterface::build()
- 8.7 modules/social_features/social_content_block/src/ContentBuilderInterface.php \Drupal\social_content_block\ContentBuilderInterface::build()
- 8.8 modules/social_features/social_content_block/src/ContentBuilderInterface.php \Drupal\social_content_block\ContentBuilderInterface::build()
- 10.3.x modules/social_features/social_content_block/src/ContentBuilderInterface.php \Drupal\social_content_block\ContentBuilderInterface::build()
- 10.0.x modules/social_features/social_content_block/src/ContentBuilderInterface.php \Drupal\social_content_block\ContentBuilderInterface::build()
- 10.2.x modules/social_features/social_content_block/src/ContentBuilderInterface.php \Drupal\social_content_block\ContentBuilderInterface::build()
Lazy builder callback for displaying a content blocks.
Parameters
int $entity_id: Entity ID.
string $entity_type_id: Entity type id.
string $entity_bundle: The bundle of the entity.
Return value
array A render array for the action link, empty if the user does not have access.
1 method overrides ContentBuilderInterface::build()
- ContentBuilder::build in modules/
social_features/ social_content_block/ src/ ContentBuilder.php - Lazy builder callback for displaying a content blocks.
File
- modules/
social_features/ social_content_block/ src/ ContentBuilderInterface.php, line 26
Class
- ContentBuilderInterface
- Interface ContentBuilderInterface.
Namespace
Drupal\social_content_blockCode
public function build($entity_id, $entity_type_id, $entity_bundle) : array;