protected function SimpleInstagramBlock::buildAttachedSettings in Simple Instagram Feed Block 8.3
Same name and namespace in other branches
- 1.0.x src/Plugin/Block/SimpleInstagramBlock.php \Drupal\simple_instagram_feed\Plugin\Block\SimpleInstagramBlock::buildAttachedSettings()
Build instagram attached settings.
Return value
array An array of the formatted settings.
1 call to SimpleInstagramBlock::buildAttachedSettings()
- SimpleInstagramBlock::build in src/
Plugin/ Block/ SimpleInstagramBlock.php - Builds and returns the renderable array for this block plugin.
File
- src/
Plugin/ Block/ SimpleInstagramBlock.php, line 262
Class
- SimpleInstagramBlock
- Provides a block with a dynamic Instagram Feed.
Namespace
Drupal\simple_instagram_feed\Plugin\BlockCode
protected function buildAttachedSettings() {
$config = $this
->getConfiguration();
return [
'items' => $config['simple_instagram_items'],
'styling' => $config['simple_instagram_styling'],
'captions' => $config['simple_instagram_captions'],
'image_size' => $config['simple_instagram_image_size'],
'instagram_username' => $config['simple_instagram_username'],
'display_profile' => $config['simple_instagram_display_profile'],
'display_biography' => $config['simple_instagram_display_biography'],
'items_per_row_type' => $config['simple_instagram_items_per_row_type'],
'items_per_row_default' => $config['simple_instagram_items_per_row_default'] + 1,
'items_per_row_l_720' => $config['simple_instagram_items_per_row_l_720'] + 1,
'items_per_row_l_960' => $config['simple_instagram_items_per_row_l_960'] + 1,
'items_per_row_h_960' => $config['simple_instagram_items_per_row_h_960'] + 1,
'lazy_load' => $config['simple_instagram_lazy_load'],
];
}