Notifications
Clear all
Topic starter
09/09/2022 1:33 am
A developer is developing a reuseable Aura Component that will reside on an sObject
Lightning Page with the following HTML snippet:
<aura:component implements="force:hasRecordId,flexipage:availableForAIIPageTypesM>
<div>Hello!</div>
</aura:component>
How can the component's Controller get the context of the Lightning Page that the sObject is on without requiring additional test coverage?
- A . Set the sObject type as a component attribute.
- B . Add force:hasSobjectName to the implements.
- C . Use the getSObjectTypeQ method in an Apex class.
- D . Create a design attribute and configure via App builder.
Suggested Answer: B