You are here

public function FlexiformDisplayBase::access in Flexiform 7

Check the access for this form display.

Parameters

array $context: (optional) An array of settings and values to help the plugin return the entity

Return value

bool TRUE if the user can access this display. False otherwise.

Overrides FlexiformDisplayInterface::access

1 call to FlexiformDisplayBase::access()
FlexiformDisplayAddPane::access in includes/display/add_pane.display.inc
Check the access for this form display.
1 method overrides FlexiformDisplayBase::access()
FlexiformDisplayAddPane::access in includes/display/add_pane.display.inc
Check the access for this form display.

File

includes/flexiform.display.inc, line 192
Specify base display classes for flexiforms.

Class

FlexiformDisplayBase
Base class for all flexiform displays.

Code

public function access($context = array()) {
  $base_entity = $this
    ->getBaseEntity($context);
  return $this
    ->getFlexiform()
    ->getAccessController(get_class($this))
    ->checkAccess($base_entity);
}