class ValidEntityHierarchySection in Entity Reference Hierarchy 3.x
Same name and namespace in other branches
- 8.2 modules/entity_hierarchy_workbench_access/src/Plugin/Validation/Constraint/ValidEntityHierarchySection.php \Drupal\entity_hierarchy_workbench_access\Plugin\Validation\Constraint\ValidEntityHierarchySection
Supports validating allowed parent.
Plugin annotation
@Constraint(
id = "ValidHierarchySection",
label = @Translation("Valid hierarchy selection", context = "Validation"),
)
Hierarchy
- class \Drupal\entity_hierarchy_workbench_access\Plugin\Validation\Constraint\ValidEntityHierarchySection extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of ValidEntityHierarchySection
File
- modules/
entity_hierarchy_workbench_access/ src/ Plugin/ Validation/ Constraint/ ValidEntityHierarchySection.php, line 15
Namespace
Drupal\entity_hierarchy_workbench_access\Plugin\Validation\ConstraintView source
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.';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ValidEntityHierarchySection:: |
public | property | Violation message. Use the same message as FormValidator. |