You are here

public function RestMenuItemsCachableDepenency::__construct in Rest menu items 8

RestMenuItemsCachableDepenency constructor.

Parameters

int $minDepth The minimum depth to be used as a cache context:

int $maxDepth The maximum depth to be used as a cache context:

File

src/Plugin/rest/resource/RestMenuItemsCachableDepenency.php, line 31

Class

RestMenuItemsCachableDepenency

Namespace

Drupal\rest_menu_items\Plugin\rest\resource

Code

public function __construct($menuName, $minDepth, $maxDepth) {
  $this->menuName = $menuName;
  $this->minDepth = $minDepth;
  $this->maxDepth = $maxDepth;
}