ContentBlockBase.php in Open Social 10.3.x
Same filename and directory in other branches
- 8.9 modules/social_features/social_content_block/src/ContentBlockBase.php
- 8.8 modules/social_features/social_content_block/src/ContentBlockBase.php
- 10.0.x modules/social_features/social_content_block/src/ContentBlockBase.php
- 10.1.x modules/social_features/social_content_block/src/ContentBlockBase.php
- 10.2.x modules/social_features/social_content_block/src/ContentBlockBase.php
Namespace
Drupal\social_content_blockFile
modules/social_features/social_content_block/src/ContentBlockBase.phpView source
<?php
namespace Drupal\social_content_block;
use Drupal\Component\Plugin\PluginBase;
/**
* Defines a base content block implementation.
*
* This abstract class provides a method for inserting additional filters to the
* base query of the "Custom content list block" custom block.
*
* @ingroup social_content_block_api
*/
abstract class ContentBlockBase extends PluginBase implements ContentBlockPluginInterface {
/**
* {@inheritdoc}
*/
public function supportedSortOptions() : array {
return [
'created' => 'Last created',
'changed' => 'Last updated',
'most_commented' => 'Most commented',
'most_liked' => 'Most liked',
'last_interacted' => 'Last interacted',
];
}
}
Classes
Name | Description |
---|---|
ContentBlockBase | Defines a base content block implementation. |