ValidEntityHierarchySection.php in Entity Reference Hierarchy 3.x
Same filename and directory in other branches
File
modules/entity_hierarchy_workbench_access/src/Plugin/Validation/Constraint/ValidEntityHierarchySection.phpView source
<?php
namespace Drupal\entity_hierarchy_workbench_access\Plugin\Validation\Constraint;
use Symfony\Component\Validator\Constraint;
/**
* Supports validating allowed parent.
*
* @Constraint(
* id = "ValidHierarchySection",
* label = @Translation("Valid hierarchy selection", context = "Validation"),
* )
*/
class ValidEntityHierarchySection extends Constraint {
/**
* Violation message. Use the same message as FormValidator.
*
* Note that the name argument is not sanitized so that translators only have
* one string to translate. The name is sanitized in self::validate().
*
* @var string
*/
public $message = 'You are not allowed to create content in this section.';
}
Classes
Name | Description |
---|---|
ValidEntityHierarchySection | Supports validating allowed parent. |