Returns an array containing all public methods on the type represented by this ModelClass
with the name name and can take the passed-in types as arguments.
if a layout is overridden from a module (which happens when layout is auto-generated),
we need to update its contents from the class that overrides it.