public function SocialContentBlockLandingPageContentBuilder::getEntities in Open Social 10.3.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_content_block/modules/social_content_block_landing_page/src/Service/SocialContentBlockLandingPageContentBuilder.php \Drupal\social_content_block_landing_page\Service\SocialContentBlockLandingPageContentBuilder::getEntities()
- 10.0.x modules/social_features/social_content_block/modules/social_content_block_landing_page/src/Service/SocialContentBlockLandingPageContentBuilder.php \Drupal\social_content_block_landing_page\Service\SocialContentBlockLandingPageContentBuilder::getEntities()
- 10.1.x modules/social_features/social_content_block/modules/social_content_block_landing_page/src/Service/SocialContentBlockLandingPageContentBuilder.php \Drupal\social_content_block_landing_page\Service\SocialContentBlockLandingPageContentBuilder::getEntities()
- 10.2.x modules/social_features/social_content_block/modules/social_content_block_landing_page/src/Service/SocialContentBlockLandingPageContentBuilder.php \Drupal\social_content_block_landing_page\Service\SocialContentBlockLandingPageContentBuilder::getEntities()
Function to get all the entities based on the filters.
Parameters
string|int $block_id: The block id where we get the settings from.
Return value
array Returns the entities found.
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
\Drupal\Component\Plugin\Exception\PluginException
\Drupal\Component\Plugin\Exception\PluginNotFoundException
Overrides ContentBuilder::getEntities
File
- modules/
social_features/ social_content_block/ modules/ social_content_block_landing_page/ src/ Service/ SocialContentBlockLandingPageContentBuilder.php, line 60
Class
- SocialContentBlockLandingPageContentBuilder
- Class SocialContentBlockLandingPageContentBuilder.
Namespace
Drupal\social_content_block_landing_page\ServiceCode
public function getEntities($block_id) {
$elements = parent::getEntities($block_id);
foreach (Element::children($elements) as $delta) {
$elements[$delta]['#custom_content_list_section'] = TRUE;
}
return $elements;
}