protected function SocialPostPostForm::getBlockDefinitions in Open Social 8
Same name and namespace in other branches
- 8.9 modules/social_features/social_post/src/Plugin/views/area/SocialPostPostForm.php \Drupal\social_post\Plugin\views\area\SocialPostPostForm::getBlockDefinitions()
- 8.2 modules/social_features/social_post/src/Plugin/views/area/SocialPostPostForm.php \Drupal\social_post\Plugin\views\area\SocialPostPostForm::getBlockDefinitions()
- 8.3 modules/social_features/social_post/src/Plugin/views/area/SocialPostPostForm.php \Drupal\social_post\Plugin\views\area\SocialPostPostForm::getBlockDefinitions()
- 8.4 modules/social_features/social_post/src/Plugin/views/area/SocialPostPostForm.php \Drupal\social_post\Plugin\views\area\SocialPostPostForm::getBlockDefinitions()
- 8.5 modules/social_features/social_post/src/Plugin/views/area/SocialPostPostForm.php \Drupal\social_post\Plugin\views\area\SocialPostPostForm::getBlockDefinitions()
- 8.6 modules/social_features/social_post/src/Plugin/views/area/SocialPostPostForm.php \Drupal\social_post\Plugin\views\area\SocialPostPostForm::getBlockDefinitions()
- 8.7 modules/social_features/social_post/src/Plugin/views/area/SocialPostPostForm.php \Drupal\social_post\Plugin\views\area\SocialPostPostForm::getBlockDefinitions()
- 8.8 modules/social_features/social_post/src/Plugin/views/area/SocialPostPostForm.php \Drupal\social_post\Plugin\views\area\SocialPostPostForm::getBlockDefinitions()
- 10.3.x modules/social_features/social_post/src/Plugin/views/area/SocialPostPostForm.php \Drupal\social_post\Plugin\views\area\SocialPostPostForm::getBlockDefinitions()
- 10.0.x modules/social_features/social_post/src/Plugin/views/area/SocialPostPostForm.php \Drupal\social_post\Plugin\views\area\SocialPostPostForm::getBlockDefinitions()
- 10.1.x modules/social_features/social_post/src/Plugin/views/area/SocialPostPostForm.php \Drupal\social_post\Plugin\views\area\SocialPostPostForm::getBlockDefinitions()
- 10.2.x modules/social_features/social_post/src/Plugin/views/area/SocialPostPostForm.php \Drupal\social_post\Plugin\views\area\SocialPostPostForm::getBlockDefinitions()
Get sorted listed of supported block definitions.
Return value
array An associative array of supported block definitions.
1 call to SocialPostPostForm::getBlockDefinitions()
- SocialPostPostForm::buildOptionsForm in modules/
social_features/ social_post/ src/ Plugin/ views/ area/ SocialPostPostForm.php - Provide a form to edit options for this plugin.
File
- modules/
social_features/ social_post/ src/ Plugin/ views/ area/ SocialPostPostForm.php, line 85
Class
- SocialPostPostForm
- Provides an area handler which renders a block entity in a certain view mode.
Namespace
Drupal\social_post\Plugin\views\areaCode
protected function getBlockDefinitions() {
$definitions = $this->blockManager
->getSortedDefinitions();
$block_definitions = [];
foreach ($definitions as $plugin_id => $definition) {
// Context aware plugins are not currently supported.
// Core and component plugins can be context-aware
// https://www.drupal.org/node/1938688
// @see \Drupal\ctools\Plugin\Block\EntityView
if (isset($definition['context'])) {
continue;
}
$block_definitions[$plugin_id] = $definition;
}
return $block_definitions;
}