public function ActivityPlugin::__construct in Activity 8
Activity constructor.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
array $plugin_definition: The plugin implementation definition.
\Drupal\activity\QueryActivity $activityQuery: Query Activity service.
Overrides PluginBase::__construct
File
- src/
Plugin/ views/ query/ ActivityPlugin.php, line 85
Class
- ActivityPlugin
- Activity views query plugin which display all activities.
Namespace
Drupal\activity\Plugin\views\queryCode
public function __construct(array $configuration, $plugin_id, array $plugin_definition, QueryActivity $activityQuery) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->activityQuery = $activityQuery;
$this->activities = $this->activityQuery
->getActivities();
}