IActionFactory

interface OCP\Contacts\ContactsMenu\IActionFactory
Implemented by:OC\Contacts\ContactsMenu\ActionFactory
Source:lib/public/Contacts/ContactsMenu/IActionFactory.php#29

Methods

public OCP\Contacts\ContactsMenu\IActionFactory::newLinkAction($icon, $name, $href)
Construct and return a new link action for the contacts menu
Source:

lib/public/Contacts/ContactsMenu/IActionFactory.php#41

Parameters:
  • $icon (string) full path to the action’s icon
  • $name (string) localized name of the action
  • $href (string) target URL
Since:

12.0

Returns:

\OCP\Contacts\ContactsMenu\ILinkAction

public OCP\Contacts\ContactsMenu\IActionFactory::newEMailAction($icon, $name, $email)
Construct and return a new email action for the contacts menu
Source:

lib/public/Contacts/ContactsMenu/IActionFactory.php#53

Parameters:
  • $icon (string) full path to the action’s icon
  • $name (string) localized name of the action
  • $email (string) target e-mail address
Since:

12.0

Returns:

\OCP\Contacts\ContactsMenu\ILinkAction