MenuLinkDepthConstraint.php
Namespace
Drupal\Core\Menu\Plugin\Validation\ConstraintFile
-
core/
lib/ Drupal/ Core/ Menu/ Plugin/ Validation/ Constraint/ MenuLinkDepthConstraint.php
View source
<?php
declare (strict_types=1);
namespace Drupal\Core\Menu\Plugin\Validation\Constraint;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\Validation\Attribute\Constraint;
use Drupal\Core\Validation\Plugin\Validation\Constraint\RangeConstraint;
/**
* Validates the link depth of a menu tree.
*/
class MenuLinkDepthConstraint extends RangeConstraint {
/**
* The initial level of menu items that are being exposed (zero-based).
*
* @var string|int
*/
public string|int $baseLevel = 0;
}
Classes
Title | Deprecated | Summary |
---|---|---|
MenuLinkDepthConstraint | Validates the link depth of a menu tree. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.