1 taxonomy_term_depth_access.inc public TaxonomyTermDepthLayoutAccess::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/taxonomy/layout/taxonomy_term_depth_access.inc, line 53
Plugin to provide access control based upon taxonomy term depth.

Class

TaxonomyTermDepthLayoutAccess
@file Plugin to provide access control based upon taxonomy term depth.

Code

public function summary() {
  if (isset($this->settings['depth'])) {
    return t('Taxonomy term depth: @depth', array('@depth' => $this->settings['depth']));
  }

  return '';
}