getLayout call from Service

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alasdaircr
    Active Community Member
    • Aug 2014
    • 525

    getLayout call from Service

    Hello,

    What's the neatest way to retrieve a layout while in the Service scope? I'm not completely following what the Container in getContainer() refers to

    E.g. from

    PHP Code:
    application/Espo/Services/Record.php 
    

    Call something like

    PHP Code:
    $accountListLayout = $something->get('layout')->get('Account', 'list); 
    
  • alasdaircr
    Active Community Member
    • Aug 2014
    • 525

    #2
    Sorry - I figured it out, you inject it in Core/Services/Base

    Comment

    Working...