This repository has been archived on 2022-07-12 . You can view files and clone it, but cannot push or open issues or pull requests.
2018-09-12 14:50:08 +00:00
< ? php
namespace Drupal\opencase_reporting\Plugin\Block ;
use Drupal\opencase\EntityTypeRelations ;
use Drupal\Core\Block\BlockBase ;
use Drupal\Core\Link ;
use Drupal\Core\Url ;
/**
* Provides a block for loading , saving and creating report presets .
*
* @ Block (
* id = " opencase_reporting_presets " ,
* admin_label = @ Translation ( " OpenCase Reporting Presets " ),
* )
*/
class Presets extends BlockBase {
/**
* { @ inheritdoc }
*/
public function build () {
return array (
2018-09-12 17:16:36 +00:00
'#presets' => array ( array ( 'title' => 'me and you' , 'basis' => 'actors' , 'filter' => '&f%5B0%5D=actor_type%3Afat&f%5B1%5D=created%3A2018-09' ), array ( 'title' => 'them' , 'basis' => 'actors' )),
2018-09-12 14:50:08 +00:00
'#theme' => 'opencase_reporting_presets'
);
}
}