interface ActivityTypePluginInterface in CRM Core 8.3
Same name and namespace in other branches
- 8 modules/crm_core_activity/src/ActivityTypePluginInterface.php \Drupal\crm_core_activity\ActivityTypePluginInterface
- 8.2 modules/crm_core_activity/src/ActivityTypePluginInterface.php \Drupal\crm_core_activity\ActivityTypePluginInterface
Defines the interface for activity type plugins.
Hierarchy
- interface \Drupal\Component\Plugin\ConfigurableInterface; interface \Drupal\Component\Plugin\DependentPluginInterface
- interface \Drupal\crm_core_activity\ActivityTypePluginInterface
Expanded class hierarchy of ActivityTypePluginInterface
All classes that implement ActivityTypePluginInterface
File
- modules/
crm_core_activity/ src/ ActivityTypePluginInterface.php, line 11
Namespace
Drupal\crm_core_activityView source
interface ActivityTypePluginInterface extends ConfigurableInterface, DependentPluginInterface {
/**
* Displays the contents of the label field on the activity entity.
*
* @param \Drupal\crm_core_activity\ActivityInterface $entity
* The activity entity to build the label for.
*
* @return string
* Returns the entity label.
*/
public function label(ActivityInterface $entity);
/**
* Returns visual representation of the activity in form of a render array.
*
* @param \Drupal\crm_core_activity\ActivityInterface $entity
* The activity entity to build the label for.
*
* @return array
* Visual representation of the activity in form of a render array.
*/
public function display(ActivityInterface $entity);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ActivityTypePluginInterface:: |
public | function | Returns visual representation of the activity in form of a render array. | 1 |
ActivityTypePluginInterface:: |
public | function | Displays the contents of the label field on the activity entity. | 1 |
ConfigurableInterface:: |
public | function | Gets default configuration for this plugin. | 11 |
ConfigurableInterface:: |
public | function | Gets this plugin's configuration. | 12 |
ConfigurableInterface:: |
public | function | Sets the configuration for this plugin instance. | 12 |
DependentPluginInterface:: |
public | function | Calculates dependencies for the configured plugin. | 19 |