You are here

function hook_social_content_block_info_alter in Open Social 10.2.x

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_content_block/social_content_block.api.php \hook_social_content_block_info_alter()
  2. 8.8 modules/social_features/social_content_block/social_content_block.api.php \hook_social_content_block_info_alter()
  3. 10.3.x modules/social_features/social_content_block/social_content_block.api.php \hook_social_content_block_info_alter()
  4. 10.0.x modules/social_features/social_content_block/social_content_block.api.php \hook_social_content_block_info_alter()
  5. 10.1.x modules/social_features/social_content_block/social_content_block.api.php \hook_social_content_block_info_alter()

Alter the list of content block plugin definitions.

Parameters

array $info: The content block plugin definitions to be altered.

See also

\Drupal\social_content_block\Annotation\ContentBlock

\Drupal\social_content_block\ContentBlockManager

1 invocation of hook_social_content_block_info_alter()
ContentBlockManager::__construct in modules/social_features/social_content_block/src/ContentBlockManager.php
Creates the discovery object.

File

modules/social_features/social_content_block/social_content_block.api.php, line 44
Hooks provided by the Social Content Block module.

Code

function hook_social_content_block_info_alter(array &$info) {
  if (isset($info['event_content_block'])) {
    $info['event_content_block']['fields'][] = 'field_content_tags';
  }
}