Go to Settings -> All (tab) -> Sound & notification -> Interruptions. You can also easily access this shortcut by dragging the top bar down on your screen, then dragging the bottom of the shortcut bar to reveal the “No Disturb” shortcut button. This feature turns off all calls and notifications unless you set exceptions for it.