You are here

public function ContentBuilderInterface::build in Open Social 10.0.x

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_content_block/src/ContentBuilderInterface.php \Drupal\social_content_block\ContentBuilderInterface::build()
  2. 8.6 modules/social_features/social_content_block/src/ContentBuilderInterface.php \Drupal\social_content_block\ContentBuilderInterface::build()
  3. 8.7 modules/social_features/social_content_block/src/ContentBuilderInterface.php \Drupal\social_content_block\ContentBuilderInterface::build()
  4. 8.8 modules/social_features/social_content_block/src/ContentBuilderInterface.php \Drupal\social_content_block\ContentBuilderInterface::build()
  5. 10.3.x modules/social_features/social_content_block/src/ContentBuilderInterface.php \Drupal\social_content_block\ContentBuilderInterface::build()
  6. 10.1.x modules/social_features/social_content_block/src/ContentBuilderInterface.php \Drupal\social_content_block\ContentBuilderInterface::build()
  7. 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_block

Code

public function build($entity_id, $entity_type_id, $entity_bundle) : array;