1 front_layout_access.inc FrontLayoutAccess::checkAccess()

Checks for access based on the available context.

Return value

boolean: The result of the access check.

Overrides LayoutAccess::checkAccess

File

core/modules/layout/plugins/access/front_layout_access.inc, line 27
Class for loading, modifying, and saving a layout access rule (condition).

Class

FrontLayoutAccess
@file Class for loading, modifying, and saving a layout access rule (condition).

Code

function checkAccess() {
  if ($this->settings['negate']) {
    return !backdrop_is_front_page();
  }
  else {
    return backdrop_is_front_page();
  }
}