1 entity_id_layout_access.inc EntityIDLayoutAccess::summary()

Provides a human-readable summary of this access check's behavior.

Parameters

$contexts: An array containing available contexts.

Return value

string: The sanitized HTML summary string for this access check.

Overrides LayoutAccess::summary

File

core/modules/layout/plugins/access/entity_id_layout_access.inc, line 82
Plugin to provide access control based upon entity ID.

Class

EntityIDLayoutAccess
@file Plugin to provide access control based upon entity ID.

Code

function summary() {
  if ($this->settings['negate']) {
    return t('@entity ID is NOT: @entity_id', array(
      '@entity' => $this->entity_info['label'],
      '@entity_id' => $this->settings['entity_id'],
    ));
  }
  else {
    return t('@entity ID is: @entity_id', array(
      '@entity' => $this->entity_info['label'],
      '@entity_id' => $this->settings['entity_id'],
    ));
  }
}