You are here

public function SocialContentBlockLandingPageContentBuilder::getEntities in Open Social 8.9

Same name and namespace in other branches
  1. 10.3.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()
  2. 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()
  3. 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()
  4. 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 59

Class

SocialContentBlockLandingPageContentBuilder
Class SocialContentBlockLandingPageContentBuilder.

Namespace

Drupal\social_content_block_landing_page\Service

Code

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;
}