Use the force:hasSObjectName Interface with Quick Actions

Add the force:hasSObjectName interface to a Lightning component to enable the component to be assigned the API name of current record’s sObject type. The sObject name is useful if the component can be used with records of different sObject types, and needs to adapt to the specific type of the current record.
Previously, this interface affected only components used on Lightning record pages. Now you can use it in these additional contexts.
  • Quick actions—components that implement the force:lightningQuickAction or force:lightningQuickActionWithoutHeader interfaces.
  • Standard action overrides—components that implement the lightning:actionOverride interface.