You are here

PostPhotoProfileBlock.php in Open Social 8.5

File

modules/social_features/social_post/modules/social_post_photo/src/Plugin/Block/PostPhotoProfileBlock.php
View source
<?php

namespace Drupal\social_post_photo\Plugin\Block;

use Drupal\Core\Extension\ModuleHandler;
use Drupal\social_post\Plugin\Block\PostProfileBlock;

/**
 * Provides a 'PostPhotoProfileBlock' block.
 *
 * @Block(
 *  id = "post_photo_profile_block",
 *  admin_label = @Translation("Post photo on profile of others block"),
 * )
 */
class PostPhotoProfileBlock extends PostProfileBlock {

  /**
   * {@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

Namesort descending Description
PostPhotoProfileBlock Provides a 'PostPhotoProfileBlock' block.