ActivityTypeWithConfig.php in CRM Core 8.3
Same filename and directory in other branches
File
modules/crm_core_activity/tests/modules/crm_core_activity_plugin_test/src/Plugin/crm_core_activity/ActivityType/ActivityTypeWithConfig.phpView source
<?php
namespace Drupal\crm_core_activity_plugin_test\Plugin\crm_core_activity\ActivityType;
use Drupal\crm_core_activity\ActivityTypePluginBase;
/**
* Provides generic plugin for activity type.
*
* @ActivityTypePlugin(
* id = "with_config",
* label = @Translation("Activity type with config"),
* description = @Translation("Activity type with config plugin.")
* )
*/
class ActivityTypeWithConfig extends ActivityTypePluginBase {
/**
* {@inheritdoc}
*/
public function defaultConfiguration() {
return [
'configuration_variable' => 'foo',
];
}
}
Classes
Name | Description |
---|---|
ActivityTypeWithConfig | Provides generic plugin for activity type. |