class IgnoreActiveTrailConstraint

Constraint on the ignore_active_trail configuration in system menu blocks.

Attributes

#[Constraint(id: 'IgnoreActiveTrail', label: new TranslatableMarkup('Whether the ignore_active_trail setting is valid', [], [ 'context' => 'Validation', ]))]

Hierarchy

Expanded class hierarchy of IgnoreActiveTrailConstraint

File

core/modules/system/src/Plugin/Validation/Constraint/IgnoreActiveTrailConstraint.php, line 14

Namespace

Drupal\system\Plugin\Validation\Constraint
View source
class IgnoreActiveTrailConstraint extends SymfonyConstraint {
  
  /**
   * The default violation message.
   *
   * @var string
   */
  public string $message = 'The "ignore_active_trail" setting on a system menu block cannot be enabled if "level" is greater than 1 or "expand_all_items" is not enabled and "depth" is greater than 1.';

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.