PostPhotoGroupBlock.php in Open Social 8.4
Same filename and directory in other branches
- 8.9 modules/social_features/social_post/modules/social_post_photo/src/Plugin/Block/PostPhotoGroupBlock.php
- 8 modules/social_features/social_post/modules/social_post_photo/src/Plugin/Block/PostPhotoGroupBlock.php
- 8.2 modules/social_features/social_post/modules/social_post_photo/src/Plugin/Block/PostPhotoGroupBlock.php
- 8.3 modules/social_features/social_post/modules/social_post_photo/src/Plugin/Block/PostPhotoGroupBlock.php
- 8.5 modules/social_features/social_post/modules/social_post_photo/src/Plugin/Block/PostPhotoGroupBlock.php
- 8.6 modules/social_features/social_post/modules/social_post_photo/src/Plugin/Block/PostPhotoGroupBlock.php
- 8.7 modules/social_features/social_post/modules/social_post_photo/src/Plugin/Block/PostPhotoGroupBlock.php
- 8.8 modules/social_features/social_post/modules/social_post_photo/src/Plugin/Block/PostPhotoGroupBlock.php
- 10.3.x modules/social_features/social_post/modules/social_post_photo/src/Plugin/Block/PostPhotoGroupBlock.php
- 10.0.x modules/social_features/social_post/modules/social_post_photo/src/Plugin/Block/PostPhotoGroupBlock.php
- 10.1.x modules/social_features/social_post/modules/social_post_photo/src/Plugin/Block/PostPhotoGroupBlock.php
- 10.2.x modules/social_features/social_post/modules/social_post_photo/src/Plugin/Block/PostPhotoGroupBlock.php
Namespace
Drupal\social_post_photo\Plugin\BlockFile
modules/social_features/social_post/modules/social_post_photo/src/Plugin/Block/PostPhotoGroupBlock.phpView source
<?php
namespace Drupal\social_post_photo\Plugin\Block;
use Drupal\Core\Extension\ModuleHandler;
use Drupal\social_post\Plugin\Block\PostGroupBlock;
/**
* Provides a 'PostPhotoGroupBlock' block.
*
* @Block(
* id = "post_photo_group_block",
* admin_label = @Translation("Post photo on group block"),
* )
*/
class PostPhotoGroupBlock extends PostGroupBlock {
/**
* {@inheritdoc}
*/
public function __construct(array $configuration, $plugin_id, $plugin_definition, $entityTypeManager, $currentUser, $formBuilder, ModuleHandler $moduleHandler) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $entityTypeManager, $currentUser, $formBuilder, $moduleHandler);
// Override the bundle type.
$this->bundle = 'photo';
}
}
Classes
Name | Description |
---|---|
PostPhotoGroupBlock | Provides a 'PostPhotoGroupBlock' block. |