You are here

interface ActivityTypePluginInterface in CRM Core 8.3

Same name and namespace in other branches
  1. 8 modules/crm_core_activity/src/ActivityTypePluginInterface.php \Drupal\crm_core_activity\ActivityTypePluginInterface
  2. 8.2 modules/crm_core_activity/src/ActivityTypePluginInterface.php \Drupal\crm_core_activity\ActivityTypePluginInterface

Defines the interface for activity type plugins.

Hierarchy

Expanded class hierarchy of ActivityTypePluginInterface

All classes that implement ActivityTypePluginInterface

File

modules/crm_core_activity/src/ActivityTypePluginInterface.php, line 11

Namespace

Drupal\crm_core_activity
View 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

Namesort descending Modifiers Type Description Overrides
ActivityTypePluginInterface::display public function Returns visual representation of the activity in form of a render array. 1
ActivityTypePluginInterface::label public function Displays the contents of the label field on the activity entity. 1
ConfigurableInterface::defaultConfiguration public function Gets default configuration for this plugin. 11
ConfigurableInterface::getConfiguration public function Gets this plugin's configuration. 12
ConfigurableInterface::setConfiguration public function Sets the configuration for this plugin instance. 12
DependentPluginInterface::calculateDependencies public function Calculates dependencies for the configured plugin. 19